手机版
你好,游客 登录 注册
背景:
阅读新闻

CentOS 6.2 yum 安装MySQL 初始化警告

[日期:2012-09-21] 来源:Linux社区  作者:fengzhige [字体:大 中 小]

Linux系统:CentOS 6.2

yum install mysql-server

初始化时出现以下警告

[root@ www.linuxidc.com 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@ www.linuxidc.com etc]# cat /etc/hosts

[root@ www.linuxidc.com 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

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款