CentOS 6.2 yum 安装MySQL初始化警告的解决方法
发布时间:2012-10-13 23:14:55 作者:佚名
我要评论
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
初始化时出现以下警告
[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
相关文章
- linux 用yum命令安装mysql的步骤分享,需要的朋友可以参考下2012-04-17
centos 5 yum安装与配置vsFTPd FTP服务器详细步骤
vsftpd作为FTP服务器,在Linux系统中是非常常用的。下面我们介绍如何在centos系统上安装vsftp。2011-12-19- 今天deepvps不小心误删除了VPS下面的yum,大家都知道yum在linux中是很重要的一个功能,软件的下载,系统的更新都要靠他。没有yum,系统基本处于半残废状态。2010-12-20
- 安装好yum-fastestmirror后,每次用yum安装就会自动检查速度最快的镜像了2010-11-14
- 学习linux的朋友,想必您一定听过大名鼎鼎的yum吧,本文将详细介绍linux yum的使用方法,当然我们还是更愿意您man yum,无论如何,那样都是最为准确的。2010-09-23
- 当我们在liunx系统中安装某个软件时,经常会遇到一些软件的依赖问题。yum或者Yellow dog Update或者Modified是杜克大学为了提高RPM软件包安装性而开发的一种软件包管理器。2010-09-23
- 第一种方法: yum源来自chinalinuxpub.com,用的是centos包, 下载地址: http://www.chinalinuxpub.com/yum.tgz 安装: tar zxvf yum.tgz cd yum rpm -ivh *2008-09-08
- 1.列出所有可更新的软件清单 命令:yum check-update 2.安装所有更新软件 命令:yum update 3.仅安装指定的软件 命令:yum install <package_name> 4.仅更2008-09-08
- yum安装常用软件的命令 #yum check-update #yum remove 软件包名 #yum install 软件包名 #yum update 软件包名2008-09-08
- Yum(全 称为 Yellow dog Updater, Modified)是一个在Fedora,Redhat,CentOS中的Shell前端软件包办理器.基於RPM包办理,可以或许从指定的服务器AUTO下载 RPM包而且安装,可以AU2013-04-28


最新评论