Mysql5.7.13.zip installation tutorial (windows), windowsmysqlzip
This is what I did beforeMySQL installation-Free Version Download and ConfigurationTo share with you the detailed process.
1. Download Mysql
Official: http://www.mysql.com → downloads → select Community version MySQL Community Edition (GPL) → click Community (GPL) Downloads >>→ MySQL Community Server (GPL) → select the version you want to download (I select Windows (x86, 64-bit), ZIP Archive for 64-bit Systems) → Downloads → No thanks, just start my download.
2. Configure Environment Variables
Decompress the downloaded file to the location where you want to install it. I decompress it to D: \ servers \ mysql.
Solution 1:Create an environment variable. The variable name is MYSQL (generally in upper or lower case). The variable value is D: \ servers \ mysql. Add % MYSQL %/bin to the path.
Solution 2:Directly add D: \ servers \ mysql \ bin to path
3. Install the MySQL Service
Run the command line to enter the bin directory of mysql.
(Note:Enter "D:" In drive D, and use "cd folder name" to enter a folder. "cd .." returns to the previous directory)
Enter service install or mysqld install to prompt that the installation is successful.
Enter net start mysql to start mysql Service
Use mysql-u root-p (this command is used to log on to the root user, which is abbreviated as "simple". You can search for it in the detailed format.) The Default root Password is blank. Press enter.
4. mysql. ini
Original file is mysql-defult.ini
Modify basedir = D:/servers/mysql
Datadir = D:/servers/mysql/data
Note:The path is "/". If the path is copied directly but not changed, "system error 1067" will appear.
System Error 5 open a command prompt with administrator privileges
5. Connect to mysql
Enter mysql-uroot-p at the command prompt.
The Default root Password is blank. Press enter to enter
Follow the installation method I used to install MySQL 5.6 (MySQL free installation Version Download and configuration) to install MySQL 5.7:
The mysql service cannot be started and no error is reported.
As a matter of fact, when I started learning mysql this semester, I heard my teacher say that I couldn't log on, but I didn't care about it because I had installed mysql5.6 on my computer. In the past two days, the win10 system encountered a problem. After Windows 7 was reinstalled, this problem occurred during the 5.7 installation.
The default password of the previous version is null. The specific version is not clear. The password of 5.6 is empty. 5.7 security improvement. During linux 5.7 installation, a random password will be generated after installation, stored in root /. in mysql_secret, if this file is not found, you can find the password in the system log.
However, I don't know how to solve the problem in windows, but I finally found a solution.
Solution:
From: windows MySql 5.7.9, cannot start. Data missing
However, the data folder is not missing, and the my-default.ini file is renamed to my. ini, move to the bin/directory, and run the command mysqld -- initialize -- user = mysql -- console in the bin/directory. This command is probably the initialization command.
Then start the service net start mysql
The command line is shown in this
Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C: \ Windows \ system32> cd .. C: \ Windows> cd .. C: \> the specified path cannot be found for the cd mysql-5.7.13-winx64/Boot system. C: \> cd mysql-5.7.13-winx64 \ binC: \ mysql-5.7.13-winx64 \ bin> mysqld installService successfully installed. C: \ mysql-5.7.13-winx64 \ bin> net start mysqlMySQL service is starting. MySQL service cannot start. The Service did not report any errors. Type net helpmsg 3534 for more help. C: \ mysql-5.7.13-winx64 \ bin> net start mysqlMySQL service is starting. MySQL service cannot start. The Service did not report any errors. Type net helpmsg 3534 for more help. C: \ mysql-5.7.13-winx64 \ bin> mysqld -- initialize -- user = mysql -- console2016-06-21T14: 07: %922%z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. please use -- explicit_defaults_for_timestamp server option (see documentation for more details ). 2016-06-21T14: 07: 22.669315Z 0 [Warning] InnoDB: New log files created, LSN = 457902016-06-21T14: 07: 23.20.20.z 0 [Warning] InnoDB: Creating foreig N key constraintsystem tables.2016-06-21T14: 07: 23.308916Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. generatinga new UUID: 79c8316d-37b9-11e6-9709-74867a6179b7.2016-06-21t14: 07: 23.34020.z 0 [Warning] Gtid table is not ready to be used. table 'mysql. gtid_executed 'cannot be opened.2016-06-21T14: 07: 23.355716Z 1 [Note] A te Mporary password is generated for root @ localhost: rr9.8h74twfRC: \ mysql-5.7.13-winx64 \ bin> mysql-uroot-prr9.8h74twfRmysql: [Warning] Using a password on the command line interface can be insecure. ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061) C: \ mysql-5.7.13-winx64 \ bin> net start mysqlMySQL service is starting. the MySQL service has been started successfully. C: \ mysql-5.7.13-winx64 \ bin> mysql-uroot-prr9.8h74twfRmysql: [Warning] Using a password on the command line interface can be insecure. welcome to the MySQL monitor. commands end with; or \ g. your MySQL connection id is 2 Server version: 5.7.13Copyright (c) 2000,201 6, Oracle and/or its affiliates. all rights reserved. oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. other names may be trademarks of their respectiveowners. type 'help; 'or' \ H' for help. type '\ C' to clear the current input statement. mysql> set password = password (''); Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> exitByeC: \ mysql-5.7.13-winx64 \ bin> mysql-urootWelcome to the MySQL monitor. commands end with; or \ g. your MySQL connection id is 3 Server version: 5.7.13 MySQL Community Server (GPL) Copyright (c) 2000,201 6, Oracle and/or its affiliates. all rights reserved. oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. other names may be trademarks of their respectiveowners. type 'help; 'or' \ H' for help. type '\ C' to clear the current input statement. mysql> exitByeC: \ mysql-5.7.13-winx64 \ bin>
Install and configure mysql5.7.13.zip in the upper-right corner and solve the problems encountered during the installation process.