CentOS 6.2 yum 安装MySQL初始化警告的解决方法

2025-05-25 0 29

yum install mysql-server 

初始化时出现以下警告 

[root@fengzhige etc]# /etc/rc.d/init.d/mysqld start 

Initializing MySQL database: WARNING: The host \’fengzhige\’ could not be looked up with resolveip. 

This probably means that your libc libraries are not 100 % compatible 

with this binary MySQL version. The MySQL daemon, mysqld, should work 

normally with the exception that host name resolving will not work. 

This means that you should use IP addresses instead of hostnames 

when specifying MySQL privileges ! 

Installing MySQL system tables… 

OK 

Filling help tables… 

OK 

按提示,把/etc/hosts添加IP和主机名即可 

如[root@37 etc]# cat /etc/hosts 

复制代码

代码如下:


[root@fengzhige etc]# cat /etc/hosts 
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 
192.168.10.37 fengzhige 
192.168.11.37 fengzhige 

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

快网idc优惠网 建站教程 CentOS 6.2 yum 安装MySQL初始化警告的解决方法 https://www.kuaiidc.com/48879.html

相关文章

发表评论
暂无评论