I also Baidu a lot of methods are not used (I use the MySQL is free installation version, the kind of directly decompression)
Basically all say no set data directory, no initialization, I am very depressed is to follow those steps to deal with, to the end or not.
Later, the path in the config file is changed from "\" (Windows) to "/".
My entire configuration installation process:
1. Unzip MySQL to directory E:\serverEnvironment\mysql-5.7.13-winx64
2. Setting environment variables, environment variables, advanced system settings, properties, and settings for this computer locate the path variable and then edit it directly to add E:\serverEnvironment\mysql-5.7.13-winx64\bin
3, copy the E:\serverEnvironment\mysql-5.7.13-winx64 directory under the My-default.ini configuration file to the current directory to modify the name My.ini, e:/serverenvironment/ Create a new folder under the mysql-5.7.13-winx64/directory named data
4, set the configuration file, Basedir,datadir,port these three front #去掉 set the corresponding path
Basedir = e:/serverenvironment/mysql-5.7.13-winx64
DataDir = E:/serverenvironment/mysql-5.7.13-winx64/data
Port = 3306
5. Open the console (CMD) as an administrator
6, execute command line Mysqld-install prompt: Service successfully installed.
7, mysqld--initialize no hint (there is a hint basic is a problem, mysqld-console can see some tips information)
8, net start MySQL prompt MySQL service is starting.
The MySQL service has started successfully.
WIN10 MySQL 5.7.13 service failed to start 3534