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




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

2022-07-20 21:06:11 网络知识 官方管理员
yuminstallmysql-server

初始化时出现以下警告

[root@fengzhigeetc]#/etc/rc.d/init.d/mysqldstart

InitializingMySQLdatabase:WARNING:Thehost'fengzhige'couldnotbelookedupwithresolveip.

Thisprobablymeansthatyourlibclibrariesarenot100%compatible

withthisbinaryMySQLversion.TheMySQLdaemon,mysqld,shouldwork

normallywiththeexceptionthathostnameresolvingwillnotwork.

ThismeansthatyoushoulduseIPaddressesinsteadofhostnames

whenspecifyingMySQLprivileges!

InstallingMySQLsystemtables...

OK

Fillinghelptables...

OK

提示,把/etc/hosts添加IP和主机名即可

如[root@37etc]#cat/etc/hosts

复制代码

发表评论:

最近发表
网站分类
标签列表