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
复制代码