手机
当前位置:查字典教程网 >操作系统 >RedHat/Centos >CentOS 6.2 yum 安装MySQL初始化警告的解决方法
CentOS 6.2 yum 安装MySQL初始化警告的解决方法
摘要:yuminstallmysql-server初始化时出现以下警告[root@fengzhigeetc]#/etc/rc.d/init.d/m...

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.2 yum 安装MySQL初始化警告的解决方法】相关文章:

CentOS下常见的系统服务以及相关的关闭方法

CentOS启用sudo方法

linux忘记密码的常用几种解决方法

CentOS安装TortoiseSVN 客户端

使用Putty(SSH)登录管理CentOS VPS的方法

在CentOS下安装和配置分布式系统Ceph的教程

CentOS(x86_64)下PHP安装memcache扩展问题解决方法分享

如何在CentOS上安装Shutter屏幕截图程序? 成功安装Shutter的命令

CentOS 安装图形化界面方法

CentOS上SSH客户端PAC Manager的安装流程讲解

精品推荐
分类导航