WARNING: The host 'r6' could not be looked up with /usr/local/mysql/bin/resolveip.
2015-12-19 23:41
741 查看
初始化MySQL数据库提示以下信息:
解决办法:
查看hosts文件:
添加IP和主机名:
然后重新初始化!
# /usr/local/mysql/scripts/mysql_install_db \ > --defaults-file=/etc/my.cnf \ > --basedir=/usr/local/mysql \ > --datadir=/var/mysql/data \ > --user=mysql WARNING: The host 'r6' could not be looked up with /usr/local/mysql/bin/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 !
解决办法:
查看hosts文件:
# more /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
添加IP和主机名:
xxx.xxx.xxx.xxx r6
然后重新初始化!
相关文章推荐
- mysql_install_db 运行结果
- 【mysql】数据库使用的一些规范
- windows下开启mysql表名大小限制
- mysql触发器不能进行修改操作的总结
- MySql索引的优缺点
- mysql数据库表的基本操作
- mac上启动和停止mysql
- MySQL5.6 新特性之GTID
- 【C#】另一种mysql登录验证方法
- processing-MySQL learning4-call procedure:call proce(parameters)
- mysql的安装及一些常见的问题
- Mysql数据库的基本操作
- MySQL数据库的删除操作delete和truncate的区别
- Mysql忘记密码
- mysql打开速度很慢
- 安装mysql过程中卡在starting server解决办法
- mysql问题
- mysql监视器MONyog的使用
- eclipse下mysql编程
- mysql-proxy实现mysql主从库读写分离