I installed LAMP on Ubuntu 12.04 LTS (Precise Pangolin) and then set root password on phpMyAdmin. I forgot the password and now I am unable to login. When I try to chan
If you have XAMPP installed on your Linux machine, try to copy your my.cnf file from /opt/lampp/etc/my.cnf to /etc/my.cnf.
my.cnf
/opt/lampp/etc/my.cnf
/etc/my.cnf
Then, run the mysql -u root again... You should now have the correct socket and be able to run the MySQL client.
mysql -u root