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.
9