This article shares with you the solution to the problem "Can't connect to MySQL server on 'localhost' (10061)" for your reference. The specific content is as follows Online search method 1: Today I copied the MySQL database to another machine, but it failed to connect. It reported the error "Can't connect to MySQL server on 'localhost' (10061)". I searched online and found a very good article. Both methods can solve this problem. If the mysql service is not started, run net start mysql. Online search method 2: Solution to mysql error 10061 If "ERROR 2003: Can't connect to MySQL server on 'localhost' (10061)" appears, This means your MySQL has not been started. Solution: first step Delete my.ini under c:\windowns Step 2 Enter the BIN directory under DOS C:\Program Files\MySQL\MySQL Server 5.4\bin Step 3 Enter mysqld -nt -remove in DOS to delete the service Then enter mysqld -nt -install to install the service Step 4 Type net start mysql mysql started successfully -------------------------------------------------------------------------------------------------------- The above two methods did not solve my problem. However, the above two methods have actually touched upon the point. That is, my MySQL has not been started. So how do you start it? Enter the BIN directory under DOS C:\Program Files\MySQL\MySQL Server 5.4\bin Then, just enter net start mysql Then just press enter. The screenshots are as follows: Or directly The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Detailed explanation of how to build an Ftp server on Ubuntu (success guaranteed)
>>: How to set up virtual directories and configure virtual paths in Tomcat 7.0
1. Configure local yum source 1. Mount the ISO im...
How to indicate the parent directory ../ represent...
<br />Now let's take a look at how to cl...
A. Installation of MySQL backup tool xtrabackup 1...
Preface The reduce() method receives a function a...
Table of contents Before transformation: After tr...
On Linux, bash is adopted as the standard, which ...
1. Enter the directory where your project war is ...
Often you will encounter a style of <a> tag ...
Several parts of Compose deal with environment va...
By default, processes in the container run with r...
Table of contents Overview 1. How to animate a DO...
Preface If CSS is the basic skill of front-end de...
7 ways to implement a two-column layout with fixe...
Table of contents 1. Values within loop objects...