Why use root?
How about creating a dummy database (CREATE DATABASE dummy) and a dummy
user that only has rights to access that database and have your init.d
script connect as the user dummy to db dummy?
Much better than leaving MySQL root passwords around in easy to find
places. (I know, I know...
TK Banks wrote:
The startup script provided with Fedora linux uses the mysqladmin ping command to verify that the server is up after the safe_mysqld command has been issued; however, once I changed the password for the root account, this no longer works: it sits there and tries this command 10