教程集 www.jiaochengji.com
教程集 >  操作系统  >  centos/Redat  >  正文 CentOS 6.2 yum 安装MySQL初始化警告错误的解决方法

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

发布时间:2014-08-15   编辑:jiaochengji.com
CentOS 6.2 yum 安装MySQL初始化警告错误的解决方法

CentOS 6.2 yum 安装MySQL初始化警告问题的解决方法,供大家学习参考。

#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 6.2 源码安装MySQL5.5.11
yum方式安装MySQL并设置密码
Centos安装libxml2 'bin/rm: cannot remove libtoolT'...的解决方法
用于 centos6.2 优化的shell脚本
CentOS 6.3下源码编译安装MySQL 5.6
CentOS 6.2 RPM安装MySQL5.0.16的方法介绍
MySQL5.7 的编译安装的完整教程
CentOS 6.2使用yum安装LAMP与phpMyadmin
关于CentOS6.x/6.5/6.4/6.3/6.2/7.x 64位安装php5.2的方法详解

关键词: yum   
[关闭]
~ ~