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

来源:百度知道 编辑:UC知道 时间:2024/06/16 09:54:10
初始化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'