Get the App
SLTechnology News&Howtos  ›  Database  › 

How to deal with mysql connection Times ERROR 2002 (HY000) error

Shulou Source: shulou.com Published: 2022-06-01 18:29:08 10月04日 Update

The following brings you mysql connection Times ERROR 2002 (HY000) error how to deal with the relevant content, I believe you must have read a similar article. What's the difference between what we bring to everyone? Let's take a look at the text. I'm sure you'll get something after reading the mysql connection Times ERROR 2002 (HY000) how to deal with errors.

ERROR 2002 (HY000): Can't connect to local MySQL server through socket'/ var/lib/mysql/mysql.sock' (2) reason for modifying my.cnf configuration file

Modifying the location of socket attributes under mysqld results in

Solution

Add client configuration, where the socket path is the same as mysqld

[client]

Socket=/var/lib/mysql_xx/mysql.sock

It can be solved after restarting the service.

For the above about the mysql connection Times ERROR 2002 (HY000) error how to deal with, do you think it is what you want? If you want to know more about it, you can continue to follow our industry information section.

Tags: Times errors processing configuration different consistent above below location content reasons attributes files articles solutions more sections text industry solutions Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Xiaomi Shulou Technology Apple NVidia