I set RootPermitLogin to ‘no’ and locked system ‘root’ account with passwd -l. Anyway I thought that MySQL ‘root’ account was something “different” from the system one! The problem is that now if I try a command like (for example):
zcat db.sql.gz | mysql -u root -p db_name
I get: ERROR 1045 (28000):
Access denied for user ‘root’@’localhost’ (using password: YES)
Ok I locked my system ‘root’ account but I previously set a DIFFERENT password for my MySQL ‘root’ account! What’s happening here? And the strange thing is that I get this error when I try to execute these commands but applications like WordPress or SMF manage to connect to their database using the same MySQL ‘root’ account password..
I’m on Ubuntu 12.04.
MySQL root account is internal MySQL administrative account.
Linux root user account is something completely diffrent and its not related with MySQL.