Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 58606  / 3 Years ago, mon, august 30, 2021, 4:20:40

I got this error on my php script with db:



Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)


and on phpmyadmin:



#2002 Cannot log in to the MySQL server


What is the problem, how can i fix this?
I have installed lamp-server..


More From » mysql

 Answers
2

It seems that the mysql server is not running.



In a normal mysql installation, you can check if the server is running with the following command: service mysql status



For starting it, just run service mysql start.


[#41258] Wednesday, September 1, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fittecanap

Total Points: 322
Total Questions: 100
Total Answers: 105

Location: Israel
Member since Tue, Nov 17, 2020
4 Years ago
;