Get the App
SLTechnology News&Howtos  ›  Database  › 

CentOS input mysql prompt ERROR 2002 (HY000): how to solve Can't connect to

Shulou Source: shulou.com Published: 2022-05-31 18:00:13 10月03日 Update

This article mainly explains "CentOS input mysql prompt ERROR 2002 (HY000):Can't connect to how to solve", the explanation content in the article is simple and clear, easy to learn and understand, please follow the idea of small series slowly in-depth, together to study and learn "CentOS input mysql prompt ERROR 2002 (HY000):Can't connect to how to solve" bar!

About CentOS Enter mysql Tip:

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

The reason may be that the mysql service is not started. Enter the command:

# service mysqld start

Display: Starting mysqld: [ OK ] proves that the startup is successful!

You can now visit MySQL:

Thank you for reading, the above is "CentOS input mysql prompt ERROR 2002 (HY000):Can't connect to how to solve" the content, after the study of this article, I believe that we have a deeper understanding of CentOS input mysql prompt ERROR 2002 (HY000):Can't connect to how to solve this problem, the specific use of the situation also needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

Tags: Input prompt learning content success reason command that is ideas situations articles more knowledge knowledge points articles follow questions practice push service Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Information Shulou Tech Info Apple Shulou Technology