Solution to MySQL connection exception and error 10061

Solution to MySQL connection exception and error 10061

MySQL is a relational database management system developed by Swedish company MySQL AB and currently a product of Oracle. MySQL is one of the most popular relational database management systems (RDBMS).

When trying to start the MySQL server, the error message "Can't connect to MySQL server on '127.0.0.1' (10061) (2003)" appears, and the MySQL server fails to start.

Solution: Start->services.msc (Open Services)->Find MySQL in the service list->Right-click MySQL and click Start

However, sometimes MySQL is clearly installed, but there is no MySQL in the service list. What should I do?

Solution:

  1. Open cmd (run C:\Windows\System32\cmd.exe as administrator),
  2. Use the cd command to switch the directory to the bin directory of MySQL Server 5.6, the MySQL installation directory;
  3. Execute the following command: C:\Program Files\MySQL\MySQL Server 5.6\bin>mysqld.exe -install
  4. When Service successfully installed appears, it means that the MySQL service is installed successfully.

At this time, the MySQL service has appeared in the computer service.

Of course, you can directly execute the following command in the above directory: C:\Program Files\MySQL\MySQL Server 5.6\bin>net start mysql. When the prompt that the MySQL service has been started successfully appears, it indicates that the connection to MySQL is successful.

This is the end of this article about how to solve the MySQL connection exception 10061 error problem. For more information about the MySQL connection exception 10061 error, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How does MySQL implement ACID transactions?
  • Detailed explanation of the implementation principle of ACID transaction in Mysql
  • MySQL's surprising implicit conversion
  • MySQL not null constraint case explanation
  • Solve the problem of garbled data in MySQL database migration
  • MySQL transaction control flow and ACID characteristics

<<:  Example code for CSS to achieve image zooming effect and slow transition effect when the mouse moves in

>>:  Linux completely removes node.js and reinstalls it through the yum command

Recommend

Example of how to achieve ceiling effect using WeChat applet

Table of contents 1. Implementation 2. Problems 3...

mysql 5.7.17 winx64.zip installation and configuration method graphic tutorial

Preface: I reinstalled win10 and organized the fi...

Using jQuery to implement the carousel effect

What I bring to you today is to use jQuery to imp...

The submit event of the form does not respond

1. Problem description <br />When JS is use...

Analysis of the pros and cons of fixed, fluid, and flexible web page layouts

There is a question that has troubled web designe...

How to enable remote access permissions in MYSQL

1. Log in to MySQL database mysql -u root -p View...

How to authorize all the contents of a folder to a certain user in Linux?

【Problem Analysis】 We can use the chown command. ...

Explain the difference between iframe and frame in HTML with examples

I don't know if you have used the frameset at...

How to implement scheduled backup of MySQL in Linux

In actual projects, the database needs to be back...

Introduction to common MySQL storage engines and parameter setting and tuning

MyISAM, a commonly used storage engine in MySQL c...

Example code for implementing WeChat account splitting with Nodejs

The company's business scenario requires the ...

How to use CSS counters to beautify ordered lists of numbers

In web design, it is very important to use an org...