Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6422

Cannot connect to mysql server? Socket does not exist [closed]

$
0
0

I am not able to connect to the mysql server in Ubuntu 22.04 LTE. I am receiving an error message, "ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)."

I understand this is supposed to be created when you start the server but when I try to start the server it does not work as well.

I have tried to reinstall mysql, I have tried to restart mysql after purging everything.i have tried to edit the /etc/mysql/my.cnf file and added

[mysqld]socket=/var/run/mysqld/mysqld.sock[client]socket=/var/run/mysqld/mysqld.sock".

I also had maria installed before removing it.

I am working with a Laravel boilerplate and timegrid program.


Viewing all articles
Browse latest Browse all 6422

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>