Home > Database > Mysql Tutorial > What should I do if mysql cannot connect to the local database?

What should I do if mysql cannot connect to the local database?

coldplay.xixi
Release: 2020-10-26 15:34:56
Original
12334 people have browsed it

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.

What should I do if mysql cannot connect to the local database?

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:

What should I do if mysql cannot connect to the local database?

##2. Find MySQL, double-click the mouse, as shown below:


What should I do if mysql cannot connect to the local database?

3. After double-clicking, this box will pop up. Select "Automatic" as the startup type, click the "Start" button in turn, and click "Apply" button, click the "OK" button, as shown below:


What should I do if mysql cannot connect to the local database?

4. Next, you can connect to the local MySQL database, as shown below:


What should I do if mysql cannot connect to the local database?

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template