mysql-server socket malfunction – Can’t connect to local MySQL server through socket

os: ubuntu 14~
so I got Such errors

$ sudo apt-get install mysql-server
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności      
Odczyt informacji o stanie... Gotowe
mysql-server is already the newest version (5.7.16-0ubuntu0.16.04.1).

and these mysql-server is already... appears also after i did purge mysql* apt-get autoremove, autoclean etc.

or

$ sudo service mysql status
● mysql.service - MySQL Community Server
  Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
  Active: inactive (dead) (Result: exit-code) since pon 2017-01-16 17:18:51 CET; 16min ago

sty 16 17:18:51 dominik-lenovo-ideapad-y580 systemd[1]: mysql.service: Unit entered failed state.
sty 16 17:18:51 dominik-lenovo-ideapad-y580 systemd[1]: mysql.service: Failed with result 'exit-code'.
sty 16 17:18:51 dominik-lenovo-ideapad-y580 systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
sty 16 17:18:51 dominik-lenovo-ideapad-y580 systemd[1]: Stopped MySQL Community Server.
sty 16 17:18:51 dominik-lenovo-ideapad-y580 systemd[1]: mysql.service: Start request repeated too quickly.
sty 16 17:18:51 dominik-lenovo-ideapad-y580 systemd[1]: Failed to start MySQL Community Server.

when i try:

$ sudo service mysql start
Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.

and last one:

$ mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
dominik@dominik-lenovo-ideapad-y580:/var/lib$

even searchng for socket..didn’t get me anything:
sudo find / -type s

any ideas how to fix that

Related:

Leave a Reply