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
CentOS 6.2 yum 安装MySQL初始化警告的解决方法
2019-10-08 15:33枫之歌 Centos
CentOS 6.2 yum 安装MySQL初始化警告的解决方法,需要的朋友可以参考下
延伸 · 阅读
- 2022-03-11MySQL的索引你了解吗
- 2022-03-10面试中老生常谈的MySQL问答集锦夯实基础
- 2022-03-10浅谈如何保证Mysql主从一致
- 2022-03-10简单谈谈centos7中配置php
- 2022-03-10Ubuntu18.04(linux)安装MySQL的方法步骤
- 2022-03-10centos7下安装java及环境变量配置技巧
- Centos
CentOS中的正则表达式
这篇文章主要介绍了CentOS中的正则表达式 ,本文给大家介绍的非常详细,需要的朋友可以参考下...
- Centos
CentOS7的hostnamectl命令使用详解
这篇文章主要介绍了CentOS7的hostnamectl命令使用详解,hostnamectl为CentOS7版本中新曾杰的命令,需要的朋友可以参考下...
- Centos
Centos 6.9环境下创建用户及删除用户的方法
这篇文章主要介绍了Centos 6.9环境下创建用户及删除用户的方法,结合实例形式分析了Centos 6.9创建用户及删除用户相关的用户名、密码创建、删除及权限设置...
- Centos
CentOS配置SSH单向无密码访问的方法
今天小编为大家带来的是CentOS配置SSH单向无密码访问的方法;希望能够帮助到大家!有需要的朋友一起去看看吧...
- Centos
简单几步让CentOS时间同步的方法
根据大家经常对时间不能同步的问题,我们在文章中提出了一个解决方法,希望能够通过简单几步让CentOS系统时间同步 ...
- Centos
Centos7实现磁盘限额设置方法
本篇文章给大家详细分享了Centos7实现磁盘限额设置方法,对此有需要的朋友可以参考学习下。...
- Centos
CentOS5.5中安装VirtualBOX增强工具
CentOS5.5中安装VirtualBOX增强工具,需要的朋友可以参考下。 ...
- Centos
CentOS 5.5使用yum来安装LAMP(php运行环境)
今天用yum方法搭建起了个LAMP环境,中间遇到了很多问题,经过google和各位前辈的帮助,终于将环境搭建起来,现在把完整的步骤记录下来...