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
相关文章
- centos6.5中rpm包安装mysql5.7初始化出错的解决方法
- CentOS 7.0下使用yum安装mysql的方法详解
- Centos7使用yum安装MySQL及实现远程连接的方法
- CentOS6.2下YUM安装MySQL
- 安装centos mini版,无法联网,用yum安装软件提示 cannot find a valid baseurl for repo:base/7/x86_64 的解决方法
- CentOS7下MySQL5.7安装配置方法图文教程(YUM)
- CentOS 7 下使用yum安装MySQL5.7.20 最简单方法
- centos6下yum安装mariadb数据库的解决方法
- CentOS下安装mysql时忘记设置root密码致无法登录的解决方法
- CentOS 6.2 yum 安装MySQL初始化警告的解决方法