These days decided to strengthen the knowledge of the database, ready to get a MySQL, on the official website of the latest 5.7.9 version of the ZIP, add environment variable after the console prompt did not report any errors,
After viewing the log found that because there is no data folder caused, it seems that 5.7.9 version of the extract after the original data folder. Two solutions, the first is relatively simple, download the low version, such as 5.6 of MySQL, after extracting the data folder to the 5.7.9 directory, and then to my-default.ini this configuration file to add the path of the Data folder. The second method is given by the official, after the decompression of MySQL using mysqld--initialize initialization can be, the following detailed steps.
--------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------
(MSI installed version ignores)
First go to the official website to download the MySQL zip, portal http://dev.mysql.com/downloads/mysql/(PS: First login to the Oracle account), extracted after the selection of directory placement, Then add the MySQL Bin directory path to the PATH environment variable
Then enable cmd (must be administrator mode), and then adjust the directory to the MySQL bin directory, followed by simple input mysqld--initialize (note is two-), and then execute mysqld- Install, the service is prompted for a successful installation and then starts.
"MySQL Learning" Installation and Configuration service failed to start without reporting any errors