My Computer Tips

Home | About | Categories | All Tips & Tutorials

MariaDB Can't connect to local server through socket '/run/mysqld/mysqld.sock' (111)

ID: 367

Category: MariaDB Database

Added: 20th of December 2023

Views: 561



After logging in to MariaDB I received the following error
Can't connect to local server through socket '/run/mysqld/mysqld.sock' (111)

To resolve this issue you probably just need to start mysql server by entering the following command in the terminal

sudo service mysql start


To check the status of MariaDB enter the following command in the terminal
sudo service mysql status


To stop MariaDB server enter the following command in the terminal
sudo service mysql stop