V
V
Vladislav Dvoryaninov2020-08-01 12:44:03
MySQL
Vladislav Dvoryaninov, 2020-08-01 12:44:03

Mysql won't start on Ubuntu 20.04, how to start?

journalctl -xe command
This is the error The process of starting the mysql.service unit has begun.
Aug 01 12:27:52 Vlad-PC systemd-resolved[741]: Server returned error NXDOMAIN
mysql -u root -p returns ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run /mysqld/mysqld.sock' (2)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2020-08-01
@q2digger

in /etc/my.cnf (or wherever mysql config is in Ubuntu) add to the [mysqld] block
skip-name-resolve

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question