When mysql starts, enter mysql-uroot-p and enter the password and report an error ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost:3306

Many blogs about this error on the Internet are blogs generated by copying and pasting. Generally, the beginning is:
This error is often encountered by novices. This article...
reading these articles generally cannot solve the problem

Encountered this problem, enter in cmd

net start mysql

An error may be reported:
The MYSQL service is starting... The MYSQL service cannot be started. The service did not report any errors. Please type NET HELPMSG 3534 for more help

Blogger, I solved it with the following method:
The MYSQL service is starting... The MYSQL service cannot be started. The service did not report any errors. Please type NET HELPMSG 3534 for more help.

mysql could not start the service without reporting any errors

Guess you like

Origin blog.csdn.net/universe_R/article/details/120044016