Solution to the 2003 error when linking to mysql: First click the start menu on the computer desktop; then select the "Service" application to open the service panel; then find MySQL56 in the service panel, select it, right-click and start This service; finally restart the MySQL program and connect to the database.
Recommended: "mysql video tutorial"
Mysql reports a 2003 error when connecting to the database, which is caused by a setting error. The solution is as follows:
1. First, click the Start menu on the computer desktop.
#2. Enter the word service through the search bar in the lower left corner, select the "Service" application, and open the service panel.
#3. Or press the win R key on the keyboard to open the run and enter services.msc to open the service panel.
#4. Then find MySQL56 in the service panel, select it and right-click to start this service. MySQL here is on the main interface, so you can start it directly.
#5. Finally, restart the MySQL program and connect to the database. Close the service application, open MySQL, close the error code prompt, enter the account password to re-establish a connection with the database, and then open the database program.
The above is the detailed content of What to do if there is a 2003 error when linking to mysql. For more information, please follow other related articles on the PHP Chinese website!