M BUZZ CRAZE NEWS
// news

Can't find mysqld.sock

By Joseph Russell

I am kinda new to this

So I use this to turn off mysql in linus ubuntu server

#uname -r
4.4.0-87-generic

ok so when I try to run a database_instaler.sh y check the log and I see

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

But I am using Lampp and I cant find the mysqld.sock file inside the mysql directory.

Can someone please give me a hand? where can I find .sock?

1

1 Answer

This indicates that MySQL is not running or it has not been installed correctly. You access MySQL with a MySQL client, such as the mysql command. The MySQL client communicates with the MySQL server over a TCP/IP port, or a Unix socket.

In your case the MySQL client is configured to communicate with the server over a Unix socket located at /var/run/mysqld/mysqld.sock but there is no server listening there.

This could indicate

  • No MySQL server is installed
  • Your MySQL server is stopped
  • Your MySQL server is configured to listen to a socket at a different location, or to a TCP/IP port, but your MySQL client thinks it is listening to a socket at that location.
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy