Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4447

Unable to start MYSQL server in Ubuntu 22.04 LTE

$
0
0

I installed MySQL in my ubuntu 22.04 LTE environment but I am unable to get the server started. I am getting a

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2).

I have tried to purge and reinstall, I have tried to edit the .cnf file with the following

/etc/my.cnf /etc/mysql/my.cnf ~/.my.cnf!includedir /etc/mysql/mysql.conf.d/[mysqld]socket=/var/run/mysqld/mysqld.sock[client]socket=/var/run/mysqld/mysqld.sock

I used the digital ocean docs to install, using sudo apt install mysql-server... I purged the previous copy along with Maria because they were installed with me running Ubuntu as the admin (root). I am now getting this error:

sudo service mysql start* Starting MySQL database server mysqld su: warning: cannot change directory to /nonexistent: No such file or directory

Viewing all articles
Browse latest Browse all 4447

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>