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

Summary of CSS3 practical methods (recommended)

1. Rounded border: CSS CodeCopy content to clipbo...

Detailed explanation of MySQL database paradigm

Preface: I have often heard about database paradi...

VUE introduces the implementation of using G2 charts

Table of contents About G2 Chart use Complete cod...

How to use Element in React project

This is my first time using the element framework...

vue3.0+echarts realizes three-dimensional column chart

Preface: Vue3.0 implements echarts three-dimensio...

Set an icon for the website to be displayed on the far left of the browser tab

What is the purpose of this sentence? Copy code Th...

Access the MySQL database by entering the DOS window through cmd under Windows

1. Press win + R and type cmd to enter the DOS wi...

How to deploy FastDFS in Docker

Install fastdfs on Docker Mount directory -v /e/f...

Solution to 2059 error when connecting Navicat to MySQL

Recently, when I was learning Django, I needed to...

The most commonly used HTML tags to create web pages

1. Optimization of commonly used HTML tags HTML s...

JavaScript to dynamically load and delete tables

This article shares the specific code of JavaScri...

Vue 2.0 Basics in Detail

Table of contents 1. Features 2. Examples 3. Opti...

Nginx URL rewriting mechanism principle and usage examples

URL rewriting helps determine the preferred domai...

How to run .sh files in Linux system

There are two ways to run .sh files in Linux syst...