I was tooling around with PHP the other night, having found a nice little tutorial on how to interact with Mysql from PHP (I'm used to ASP and ADODB).
I couldn't access my test DB (access denied) without setting a password on the root user which I did, but of course that was a mistake. This morning I received this mail from cron:
/etc/cron.daily/logrotate:
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: YES)'
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: YES)'
Now I'm trying to delete the root password on Mysql but the command:
mysqladmin -u root -p password
keeps saying: Too few arguments to change password. That makes sense since I don't specify a new password, I'm interested in deleting the existing and not specifying a new one.
Does it make sense to remove to root password on Mysql or should I instead make cron understand that it needs a password? And whichever option you might suggest, how is it done???
Thanks in advance,
Thomas Kristensen