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
相关文章
- centos7.2的yum安装mysql和修改初始密码
- 阿里云Centos7使用yum安装MySQL5.6的正确姿势
- mysql 5.7.23 在centos7.5下超简单的本地yum源安装与配置
- centos-6.x安装Mysql教程及出现的错误解决方法
- (转)RHEL/CentOS 6.x使用EPEL6与remi的yum源安装MySQL 5.5.x
- centos7利用yum安装lnmp的教程(linux+nginx+php7.1+mysql5.7)
- centos6.5中rpm包安装mysql5.7初始化出错的解决方法
- CentOS7下安装MySQL的安装与配置(yum) (转)
- centos6.5下yum安装mysql5.5,安装教程为百度的,后续安装
- 阿里云centos7使用yum安装mysql的正确姿势(推荐)