您现在的位置是:网站首页> 编程资料编程资料
CentOS 6.2 yum 安装MySQL初始化警告的解决方法_RedHat/Centos_操作系统_
2024-03-05
182人已围观
简介 CentOS 6.2 yum 安装MySQL初始化警告的解决方法_RedHat/Centos_操作系统_
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
初始化时出现以下警告
[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
相关内容
- RHCE心得3 基于VSFTP的本地YUM源及光盘YUM源搭建步骤分享_RedHat/Centos_操作系统_
- SecureCRT key登录linux ssh设置方法_RedHat/Centos_操作系统_
- cenos 6.3 安装使用笔记分享_RedHat/Centos_操作系统_
- 最小化安装CentOS 6.X之后需要做的配置_RedHat/Centos_操作系统_
- CentOS 6.3 挂载读写NTFS分区的方法(ntfs-3g)_RedHat/Centos_操作系统_
- SecureCRT 用ssh key登录配置方法_RedHat/Centos_操作系统_
- CentOS 6.3 NFS的安装配置、启动及mount挂载方法_RedHat/Centos_操作系统_
- Centos5 执行host提示command not found解决方法_RedHat/Centos_操作系统_
- Linux VPS CentOS 安装FreeNX桌面环境步骤_RedHat/Centos_操作系统_
- 剑灵灵值怎么获得 剑灵灵值获得方法_网络游戏_游戏攻略_
