I am unable to access phpmyadmin on the localhost. On the phpmyadmin page it says "MySQL said: 2002 - No such file or directory — The server is not responding (or the local server's socket is not correctly configured)."
I am also unable to login to my mysql as well since I am unable to find the password to login. When I enter -u root -p
into the terminal I am prompted to enter a password and after I hit enter I receive the error message ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
. I already have XAMPP installed and I also made sure the mysql was installed locally by entering sudo apt-get install mysql-server
. I am at lost as to why I am having this issue and how to solve it.