说明:安装完成数据库5.6.23,进行初始化的时候报主机名无法解析的错误,详细如下
[root@DB01 mysql-5.6.23]# WARNING: The host 'DB01' could not be looked up with /usr/local/mysql/bin/resolveip. |
手工进行反向解析:
root@DB01 mysql-5.6.23]# /usr/local/mysql/bin/resolveip DB01/usr/local/mysql/bin/resolveip: Unable to find hostid for 'DB01': try again
解决方法:修改/etc/my.cnf文件
[root@DB01 mysql-5.6.23]# vi /etc/my.cnf
[root@DB01 mysql-5.6.23]# cat /etc/hosts [root@OMS_DB01 bin]# cat /etc/hosts |
测试:
[root@DB01 mysql-5.6.23]# /usr/local/mysql/bin/resolveip DB01
IP address of DB01 is 192.168.0.9
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
本文作者:JOHN,某上市公司DBA,业余时间专注于数据库的技术管理,从管理的角度去运用技术。
技术博客:猎人笔记 数据库技术群:367875324 (请备注数据库类型)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++