The solution to the problem that mysql cannot connect to the local database: First [win r] open the run and enter the command [services.msc]; then find MySQL and double-click the mouse; finally click [Auto-Start-Apply-OK] 】That’s it.
Solution to the problem that mysql cannot connect to the local database:
1. The local service may not be open. Need to Turn on the local service, press Win r to run this command, in the pop-up window, enter services.msc, and then hit Enter, as shown below:
More related free learning recommendations: mysql tutorial(video)
The above is the detailed content of What should I do if mysql cannot connect to the local database?. For more information, please follow other related articles on the PHP Chinese website!