CentOS 6.2 yum 安裝MySQL初始化警告的解決方法
發(fā)布時間:2012-10-13 23:14:55 作者:佚名
我要評論

CentOS 6.2 yum 安裝MySQL初始化警告的解決方法,需要的朋友可以參考下
yum install mysql-server
初始化時出現(xiàn)以下警告
[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
初始化時出現(xiàn)以下警告
[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系統(tǒng)中是非常常用的。下面我們介紹如何在centos系統(tǒng)上安裝vsftp。2011-12-19- 今天deepvps不小心誤刪除了VPS下面的yum,大家都知道yum在linux中是很重要的一個功能,軟件的下載,系統(tǒng)的更新都要靠他。沒有yum,系統(tǒng)基本處于半殘廢狀態(tài)。2010-12-20
- 安裝好yum-fastestmirror后,每次用yum安裝就會自動檢查速度最快的鏡像了2010-11-14
- 學習linux的朋友,想必您一定聽過大名鼎鼎的yum吧,本文將詳細介紹linux yum的使用方法,當然我們還是更愿意您man yum,無論如何,那樣都是最為準確的。2010-09-23
- 當我們在liunx系統(tǒng)中安裝某個軟件時,經(jīng)常會遇到一些軟件的依賴問題。yum或者Yellow dog Update或者Modified是杜克大學為了提高RPM軟件包安裝性而開發(fā)的一種軟件包管理器。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