Under win7 install MYSQL error: "MYSQL service can not start," the 3534 problem

Morning installed win7 under MYSQL, only to "net start mysql" This step error: error 3534:
Here Insert Picture Description
So in the Baidu search for the keyword "mysql service failed to start 3534."

Reference the following two links, to solve the problem of 3534 failed to start: mysql service error 3534 can not start.

http://jingyan.baidu.com/article/219f4bf7e978fcde442d38a9.html

http://blog.csdn.net/simon_1/article/details/50039273

Solution:

1, the addition was complete PATH environment variable (e.g.: C: \ Program Files \ mysql-5.7.13-winx64 \ bin);

2, in the MYSQL installation directory, create directory data.
Here Insert Picture Description
Before reference in Baidu know "MySQL download and install, configure and use (win7x64)" When the article, when the installation package from the official website to download a specific version of MYSQL good, unpacked into the appropriate directory, enter the next MYSQL installation directory, create a default configuration file my.ini.

Write the following in my.ini (.ini configuration file is a file inside the window, the inside of various default data).

. 1 [mysql]
2 # Set mysql client default character set
. 3 default-Character-SET = UTF8
. 4 [mysqld]
. 5 # Set 3306 port
. 6 Port = 3306
. 7 # Set mysql installation directory
8 basedir = C: \ Program Files \ mysql-5.7.13-winx64
storage directory data provided mysql database 9 #
10 DATADIR = C: \ Program Files \ mysql-5.7.13-winx64 \ data
. 11 the maximum number of connections allowed #
12 is max_connections = 200 is
13 is to use the server # the default character set to 8-bit coded character set latin1
14 character-set-server = utf8
default storage engine # 15 will be used to create a new table
16 default-storage-engine = INNODB

After saving, my.ini will replace the default file my-default.ini. (Wherein the red line marked out, replaced in accordance with individual circumstances)

note:

After the my.ini new, requires at MYSQL installation directory, manually create a data folder. (See my.ini 10th line specifies the set storage directory data mysql database)

3, MYSQL unloading, reloading, initialization, and finally open the MYSQL service.

Administrator cmd to open a command line, followed by entering the following command:

1 C: Windows \ system32> mysqld --remove // delete mysql service
2 C: Windows \ system32> mysqld --install // install mysql service
3 C: Windows \ system32> mysqld --initialize // must initialize
4 C : Windows \ system32> net start mysql
fourth small step for initialization is very important, after you perform initialization commands, empty data directory to become freshmen following documents:
Here Insert Picture Description
the last start MYSQL service is shown below, indicating successful start.

Here Insert Picture Description

Guess you like

Origin blog.csdn.net/yxy_904947467/article/details/93460845