Win7 Install MySQL error: "MySQL service failed to start" 3534 issues

Source: Internet
Author: User
Tags mysql download

I installed MySQL under Win7 in the morning, only to "net start MySQL" This step error: 3534 errors:

So in Baidu search the keyword "MySQL service cannot start 3534".

Refer to the methods in the following two links to resolve the 3534 startup failure: The MySQL service could not start a 3534 error.

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

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

Workaround:

1, environment variable path add complete (for example: C:\Program files\mysql-5.7.13-winx64\bin);

2. In the MySQL installation directory, create a new data directory.

Before referring to Baidu know in the "MySQL download installation, configuration and use (win7x64)" This article, when the download from the official website of a specific version of the MySQL installation package, extracted into the corresponding directory, into the MySQL installation directory, Create a new default profile, My.ini.

The My.ini (. ini file) is a configuration file inside window that contains various default data. ) to write the following content.

1 [MySQL]2 # Set the MySQL client default character set3default-character-set=UTF84 [Mysqld]5 #设置3306端口6Port =3306 7 # Set up the MySQL installation directory8Basedir=C:\Program files\mysql-5.7.13-winx649 # Set up a storage directory for MySQL database dataTenDatadir=C:\Program Files\mysql-5.7.13-winx64\data One # Maximum number of connections allowed Amax_connections= $ - # The character set used by the service side defaults to the 8-bit encoded latin1 character Set -Character-set-server=UTF8 the # The default storage engine that will be used when creating a new table -Default-storage-engine=innodb

After saving, My.ini will replace the default My-default.ini file. (where the red line is marked and replaced according to personal circumstances)

Attention:

After you create the My.ini, you need to manually create a new Data folder in the MySQL installation directory. (see My.ini, line 10th specifies the storage directory where the data for the MySQL database is set)

3, the MySQL uninstall, reinstall, Initialize, and finally open the MySQL service.

Open the cmd command line as an administrator and enter the following command in turn:

1 c:windows\system32>mysqld--romve  // delete mysql service 2 c:windows\system32 >mysqld-Install// installation of MySQL service
3 c:windows\system32>mysqld--initialize// must be initialized
4 c:windows\system32>net start MySQL

The first step of initialization is important, after executing the initialization command, the empty data directory is reborn as the following file:

The last start of the MySQL service is shown below, indicating a successful start.

Win7 Install MySQL error: "MySQL service failed to start" 3534 issues

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.