Ok I am having a very hard time setting up MySQL for a LAMP machine. I have already installed PHP and Apache with no problems but as soon as MySQL is finished installing, I execute the following command, mysql -u root, but I get this error:
Code:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
So I try to prompt for a password with mysql -u root -p. I type in the root password and I get this:
Code:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
Can't figure out whats wrong here, cause I installed MySQL minutes before.