when trying to connect to mysql database while in Putty, I get the following: ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (111)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Try starting your MySQL server by running the command below.
sudo service mysql start
Or
sudo service mysqld start
Hello there,
The MySQL service is down and you need to start it. You can do this with the following command
- sudo systemctl start mysql.service
If you’re still experiencing the issue, then you’ll need to check the MySQL logs or the journal log for additional information.
On Ubuntu systems, the default location for the MySQL is /var/log/mysql/error.log
You can find more information here:
https://www.digitalocean.com/community/tutorials/how-to-access-mysql-error-logs
Regards
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.