Article 6CZGA [SOLVED] Can`t connect to local MySQL server through socket.

[SOLVED] Can`t connect to local MySQL server through socket.

by
Bolshedvorskii
from LinuxQuestions.org on (#6CZGA)
When I`m trying to start MySQL via terminal I see this:
Code:root@test-udprf:/home/a.bolshedvorskii# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)File /var/run/mysqld/mysqld.sock not exist.

Then I tried to check MySQL service status and got other message:
Code:root@test-udprf:/home/a.bolshedvorskii# systemctl status mysqld
Unit mysqld.service could not be found.
MySQL version is: Code:root@test-udprf:/home/a.bolshedvorskii# mysql -V
mysql Ver 14.14 Distrib 5.5.55, for debian-linux-gnu (x86_64) using readline 6.3Why I`m using too old version? I`m trainee at gov company.

I have a suspicion that MySQL was installed incorrectly, but before deleting it, I would like to try to "reanimate" it.

Any ideas how to fix this error?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments