MySQL Green Edition installation Problem resolution (ERROR 2003 (HY000): Can ' t connect to MySQL server on ' localhost ' (10061))

Source: Internet
Author: User

The original has been using the MySQL installation version has not experienced problems, today in the installation of the green version of MySQL has a problem

After the installation of the Windows service succeeds, the prompt starts successfully with net start MySQL, but when I connect to MySQL the following error is reported:

ERROR 2003 (HY000): Can ' t connect to MySQL server on ' localhost ' (10061)

My.ini File Contents:

[Mysqld]
Basedir=e://databases//mysql
Datadir=f://databases//mysql//data

Operation:

Then, after remove the service, so repeated many times or the same mistake, really want to faint!

After that, there are several system directories found in the MySQL installation directory in the data directory, so the DataDir value in the My.ini file is set to this directory.

The main configuration after the change is:

[Mysqld]
Basedir=e://databases//mysql
Datadir=e://databases//mysql//data

Basedir: Place directory for your database program

DataDir: For your database Data directory

After you reinstall the service, the logon succeeds after you start the service.

Note: If you want to assign DataDir to a different directory, you will need to copy the files and directories under the data directory in the installation directory to the directory you specified.

:

Summarize:

The main reason for this problem is that the database data directory that you specified does not contain the system's database files.

If you set the database directory to a different directory (not the data directory under the installation directory), you will need to copy the files and directories in this directory to the directory you have indicated.

MySQL Green Edition installation Problem resolution (ERROR 2003 (HY000): Can ' t connect to MySQL server on ' localhost ' (10061))

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.