MySQL installation, startup

Source: Internet
Author: User

First, install, configure environment variables

Http://www.cnblogs.com/mr-wid/archive/2013/05/09/3068229.html

Configure environment variables: Copy your installation directory, for example: G:\DownLoad\MySQL5.6 64-bit Green version \mysql-5.6.17-winx64\bin

Then open Control Panel system and security system advanced system settings System Properties popup Advanced tab last line environment variable user variable "PATH edit"

Put the copy of the installation directory just now, add to the inside, notice and the previous path in English semicolon; Separated

For example: C:\Users\tcdcr\.dnx\bin; G:\DownLoad\MySQL5.6 64-bit Green edition \mysql-5.6.17-winx64\bin

When finished, go to the bin directory, run Mysqld.exe, and then open the command line, enter mysqld--install MySQL--defaults-file= "My.ini", enter.

Configuration of the My.ini,

# Basedir = G:\DownLoad\MySQL5.6 64-bit Green version \mysql-5.6.17-winx64
# DataDir = G:\DownLoad\MySQL5.6 64-bit Green version \mysql-5.6.17-winx64\data

Basedir is the installation directory, DataDir is the database storage directory, many people on the internet said must be the Data folder, I have not tried it.

Second, uninstall the service note

Do not uninstall the service easily, otherwise an exception occurs: The configuration information for this product is corrupted, please contact your technician.

This problem I did not find the right solution, online said to download a green version, run Mysqld.exe, try it, can.

Third, the service started

After completion, in the system services have MySQL this service, enter, start, error: The system cannot find the specified file.

Cause: In the properties of the MySQL service, the executable file path is not correct, modify the method:

Open registry regedit, find the MySQL entry, which has a configuration ImagePath, change the path to your correct installation directory,

Example: "G:\DownLoad\MySQL5.6 64-bit Green edition \mysql-5.6.17-winx64\bin\mysqld"--defaults-file=my.ini MySQL

G:\DownLoad\MySQL5.6 64-bit Green Edition \mysql-5.6.17-winx64\bin\mysqld this point is mysqld.exe.

This is the time to start the service, and the command line can start: net start MySQL

MySQL installation, startup

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.