MySQL Installation failure solution

Source: Internet
Author: User

One,. msi version of the MySQL installation package in the last execution of the time to the third step died, directly unresponsive


This is because previously installed in the computer MySQL, uninstall the time without the uninstall caused, because some folders hidden deep.

1, uninstall MySQL related components;

2. Delete the installation directory of MySQL;

3, in the registry (REGEDIT) query MySQL, all deleted;

cmd -and regedit
1.hkey_local_machine\system\controlset001\services\eventlog\application\mysql Directory
2.hkey_local_machine\system\controlset002\services\eventlog\application\mysql Directory
3.hkey_local_machine\system\currentcontrolset\services\eventlog\application\mysql Directory

4, C disk search MySQL, delete all folders. Search here when there is a MySQL folder inside the C:\ProgramData, but look at the C packing directory without this folder, do not know why, anyway, regardless of the address bar input C:\ProgramData find MySQL folder, delete can;

5. Restart the computer and reinstall. Note: If you do not restart the computer here, the third step will appear when the Red Fork is installed.




Second, if the installation version is too cumbersome, you can directly use the decompression version of MySQL.

MySQL Server 5.1

1, the file pressure, placed in any directory, I directly placed under the E-disk, E:\MySQL Server 5.1;

2, modify the My.ini file,

Basedir=e:\mysql Server 5.1 (MySQL directory)

Datadir=e:\mysql Server 5.1\data (MySQL directory \data)


3, configure the environment variable, directly add the path of the bin directory under MySQL to the path;

4. run cmd as administrator (be sure to run as administrator, or not have enough permissions),

Input: cd E:\MySQL Server 5.1\ bin into the MySQL Bin folder

Enter Mysqld-install (if run without administrator, there will be an error due to insufficient permissions: Install/remove of the Service denied!)

5. Successful Installation

6. Enter the net start MySQL startup service in CMD


If the error 2 "system cannot find a file" appears here, check whether the configuration file has been modified or whether to enter the bin directory, if the configuration file is correct and enter the Bin folder, you need to remove MySQL (input mysqld-remove) and then reinstall (input Mysqld-install);

If error 1067 occurs, it is a configuration file modification error, verify that the configuration file is correct.

7, After the service started successfully, you can log in, enter Mysql-u root-p (no password for the first login, directly press ENTER), login success!

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.