T
T
tropicalfruit2018-05-04 04:13:38
linux
tropicalfruit, 2018-05-04 04:13:38

mysql stopped working after ubuntu update?

Hello,
Suddenly there was such a problem, I upgraded to 18.04 on ubuntu and after that mysql stopped working. Tried reinstalling - didn't help.
The error log is as follows:
May 04 03:06:57 rejuv-Aspire-V3-571G systemd[1]: mysql.service: Start request repeated too quickly.
May 04 03:06:57 rejuv-Aspire-V3-571G systemd[1]: mysql.service: Failed with result 'exit-code'.
May 04 03:06:57 rejuv-Aspire-V3-571G systemd[1]: Failed to start MySQL Community Server.
When I try to login "mysql -u root" it says: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'. If you write "sudo find / type -s", then mysql is not there either. The mysqld folder in /var/run is completely empty. If I create it manually, then after launch it is automatically deleted.
If you open the config file, then in Basic Settings you can see that it refers to the folder that is missing.
Someone faced a similar problem? How can this be resolved?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
tropicalfruit, 2018-05-04
@tropicalfruit

The problem was solved in this way:
Download the mysql-apt-conf tool from dev.mysql.com/downloads/repo/apt
Install the package using sudo dpkg -i /PATH/version-specific-package-name.deb
When installing select MySQL Server & Cluster to whatever you want by pressing enter and selecting one of mysql-5.7 or mysql-8.0 then go to Ok and press enter
Run sudo apt install mysql-server
After the main packages are installed run sudo mysql_secure_installation, this will configure the password and other security stuff for mysql

R
Reversaidx, 2018-05-04
@Reversaidx

You are not looking at the muscle logs, but the systemd logs, check the logs in the muscle (in the /var/log folder) there should be more information

Y
Yuri Lobanov, 2014-05-22
@iiil

Second time already! You read how js is written in the tag! And write it right

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question