歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> CentOS 6.2 yum 安裝MySQL 初始化警告

CentOS 6.2 yum 安裝MySQL 初始化警告

日期:2017/2/28 15:32:25   编辑:Linux教程

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

Copyright © Linux教程網 All Rights Reserved