操作系统 
首页 > 操作系统 > 浏览文章

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

(编辑:jimmy 日期: 2024/10/3 浏览:3 次 )
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


本文出自 “枫之歌” 博客 出处http://fengzhige.blog.51cto.com/3691377/1001588
上一篇:在CentOS 6.3中安装与配置Mysql-5.5.29的方法
下一篇:在CentOS 6.3中安装与配置JDK-7
一句话新闻
高通与谷歌联手!首款骁龙PC优化Chrome浏览器发布
高通和谷歌日前宣布,推出首次面向搭载骁龙的Windows PC的优化版Chrome浏览器。
在对骁龙X Elite参考设计的初步测试中,全新的Chrome浏览器在Speedometer 2.1基准测试中实现了显著的性能提升。
预计在2024年年中之前,搭载骁龙X Elite计算平台的PC将面世。该浏览器的提前问世,有助于骁龙PC问世就获得满血表现。
谷歌高级副总裁Hiroshi Lockheimer表示,此次与高通的合作将有助于确保Chrome用户在当前ARM兼容的PC上获得最佳的浏览体验。