After MySQL is initially installed, it returns the message shown below the first time the daemon is started. I am trying to better understand this message, and have the following questions:
What causes the warning about the host not able to be looked up with resolveip? This is a brand new install of Centos 6.4, then
yum install mysql mysql-server. MySQL server version is 5.1.69 Source distribution.
Why does it say
To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system? I thought I wanted to do
chkconfig --levels 235 mysqld onto make MySQL start at boot time.
Why does it say
You can start the MySQL daemon with: cd /usr ; /usr/bin/mysqld_safe &. I thought I wanted to use
service mysqld startor
/etc/init.d/mysqld start. What is different between
mysqld_safe? What is the purpose of
cd /usr ;? Also, what is the purpose of the
I tried to test the MySQL daemon using
mysql-test-run.pl, but I don't seem to have
/usr/mysql-test. Any thoughts?
[root@localhost Michael]# service mysqld start Initializing MySQL database: WARNING: The host 'localhost.mysite.com' 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 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/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h localhost.mysite.com password 'new-password' Alternatively you can run: /usr/bin/mysql_secure_installation which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers. See the manual for more instructions. You can start the MySQL daemon with: cd /usr ; /usr/bin/mysqld_safe & You can test the MySQL daemon with mysql-test-run.pl cd /usr/mysql-test ; perl mysql-test-run.pl Please report any problems with the /usr/bin/mysqlbug script! [ OK ] Starting mysqld: [ OK ] [root@localhost Michael]#