MySQL localhost (10061) workaround

Source: Internet
Author: User

First step

Delete the My.ini under C:windowns

Second Step

Open C:mysqlbinwinmysqladmin.exe Enter user name and password

The third step in DOS input mysqld-nt-remove Delete Service

Then enter the Mysqld-nt-install

Step Fourth enter MySQL to start successfully.

Other methods to refer to are:

1. Look at the Hosts file localhost is not pointing 127.0.0.1

2. If the MySQL service is not started, you can run net start MySQL.

3. Some related orders:

Mysqld-nt--install #启动Mysql

MySQL #运行Mysql

Mysql-h Ipaddress-u Username-p

Or: Directly to the bin point Mysqld.exe or Mysqld-nt.exe, see if its process can run normally, if not, then to Control Panel, service to start it, see what is wrong. If not, in addition to delete the deletion of MySQL, and then reload MySQL, generally can solve the problem, you can back up the data before installation.

Error:can ' t connect to the MySQL server on ' localhost ' (10061)

Errno.: 2003

Error Number: 2003

Problem Analysis:

Unable to connect to the MySQL server, as possible:

1, the MySQL service does not start, generally in the case of the exception of MySQL can not start, such as no available disk space, My.ini mysql basedir path set error, etc.

2, the MySQL server resource is tight, causes cannot connect.

Workaround:

1, if you are a virtual host user (buy space), then contact space to check whether MySQL normal startup, and confirm MySQL configuration information (whether for localhost);

2, if you are a stand-alone host user (with administrative host permissions), then follow the steps below to check:

1 Check disk space for remaining free space and try to keep enough disk space available.

2 Check the My.ini basedir (MySQL installation address) and DataDir (data directory storage address) and other parameters set is correct, and then restart the MySQL service.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.