sudo nano /etc/mysql/my.cnf
sudo service mysql restart
подключался через DBeaver, MYSQL Workbench, telnet.
DELETE FROM `wp_posts` WHERE `post_type` = "attachment";
DELETE FROM `wp_postmeta` WHERE `meta_key` = "_wp_attached_file";
DELETE FROM `wp_postmeta` WHERE `meta_key` = "_wp_attachment_metadata";
sudo systemctl stop mysql
sudo killall -KILL mysql mysqld_safe mysqld
sudo apt -y purge mysql-server mysql-client
sudo apt -y autoremove --purge
sudo apt autoclean
deluser --remove-home mysql
sudo delgroup mysql
rm -rf /etc/apparmor.d/abstractions/mysql /etc/apparmor.d/cache/usr.sbin.mysqld /etc/mysql/var/lib/mysql /var/log/mysql* /var/log/upstart/mysql.log* /var/run/mysqld
updatedb
sudo find / -name .mysql_history -delete
/etc/mysql/conf.d/
which mysqld
что говорит? ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
sudo find / -type s
mysqld.sock
и пропиши его путь в файле /etc/my.cnsocket=путь/mysqld.sock