I
I
Igor2019-11-07 05:50:07
MySQL
Igor, 2019-11-07 05:50:07

Can't start mysql, how to solve?

When I type "mysql" into the console, it gives me the following error.

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

I have already created a socket there, why can't it connect, what could it be?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Radjah, 2019-11-07
@Radjah

Is the database server running?

P
paran0id, 2019-11-07
@paran0id

In the socket option in my.cnf, is this socket path exactly specified?

A
Azat174, 2019-11-07
@Azat174

Are there rights?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question