libc库 与 MYSQL 不兼容 如何处理?

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了libc库 与 MYSQL 不兼容 如何处理?相关的知识,希望对你有一定的参考价值。

初始化mysql后,如下提示

[root@server ~]# su - mysql -c "mysql_install_db"
WARNING: The host 'server.sharktech.net' 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 !

说是libc库 与 MYSQL 不兼容

请问如何解决??? 万分感谢!!!

su - mysql -c "mysql_install_db"

CentOS 5.3 64位版,打了这个命令后,会得出以下错误信息:

[root@server ~]# su - mysql -c "mysql_install_db"
WARNING: The host 'server.sharktech.net' 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 all prepared tables
Fill help tables

To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/local/mysql/bin/mysqladmin -u root password 'new-password'
/usr/local/mysql/bin/mysqladmin -u root -h server.sharktech.net password 'new-password'
See the manual for more instructions.

NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run
the /usr/local/mysql/bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

You can start the MySQL daemon with:
cd /usr/local/mysql ; /usr/local/mysql/bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the /usr/local/mysql/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com

好像在说什么东西不兼容。请问如何解决? 万分感谢!
提问者: 2010世博 - 高级经理 六级 最佳答案
已经安装数据库成功. 只是一些警告之类的信息.
你要启动,就按它的话做:
You can start the MySQL daemon with:
cd /usr/local/mysql ; /usr/local/mysql/bin/mysqld_safe &

只是因为你的libc库不是很兼容mysql库,所以不能在授权的时候使用domainname, 而必须直接用ip地址. 比如:
grant all on *.* to abc@192.168.0.1 identified by 'abc';
而不能用类似
grant all on *.* to abc@'yahoo.com' identified by 'abc';
这种形式.
参考技术A http://dev.mysql.com/doc/refman/5.1/zh/problems.html
这里面有好多问题的详细解释。希望您酌情给分。严打抄袭,复制。祝您早日解决难题。

以上是关于libc库 与 MYSQL 不兼容 如何处理?的主要内容,如果未能解决你的问题,请参考以下文章

Mysql精华问答| 分库分表之后,ID主键及事务如何处理

HTTP/2 兼容 API,如何处理

Neo4j - 如何处理不兼容的 RestGraphDatabase 调用

当 MySql 不支持 json 索引时,Javers 如何处理对 json 值字段的频繁查询?

前端干货--如何处理浏览器兼容性

如何处理使用js兼容所有浏览器的问题