For more information about how to install MySQL5.7.19 on windows server2016,
The installation tutorial for MySQL 5.7.19 winx64 decompressed version is recorded as follows:
System Environment: Win7 x64
Software preparation: mysql 5.7.19 winx64
Download URL: https://dev.mysql.com/downloads/mysql/
Configuration and installation process
The specific installation is as follows:
1. decompress the mysql-5.7.19-winx64.zip compressed file to the C: \ MySQL \ directory;
2. Create the my. ini configuration file in the C: \ MySQL \ directory;
3. Open the my. ini file in a text editor or another Editor, copy and paste the following code, save and exit;
# Code start [Client] # Set port 3306 port = 3306 [mysqld] # Set port 3306 = 3306 # Set mysql installation directory basedir = C: \ mysql # Set the data storage directory of the mysql database datadir = C: \ mysql \ data # maximum number of connections max_connections = 200 # The default character set used by the server is the 8-bit latin1 character set character-set-server = utf8 # default storage used when creating a new table engine default-storage-engine = INNODBsql_mode = NO_ENGINE_SUBSTITUTION, STRICT_TRANS_TABLES [mysql] # set the default character set of the mysql client default-character-set = utf8 # End of code
4. Configure environment variables;
4.1 create a system variable MYSQL_HOME and set the variable value to C: \ mysql;
4.2 edit the Path of the system variable and add % MYSQL_HOME % \ bin to the end of the Path variable value.
5. Run the command prompt cmd as an administrator (Be sure to run it as an administrator, otherwise the permission is insufficient );
5.1 use dos commands to enter the C: \ mysql directory and run the following commands
mysqld --defaults-file=my.ini --initialize-insecuremysqld --installnet start mysql
5.2 set the mysql root Password and run the following command
Mysql
-U root-puse mysql; update user setauthentication_string = password ('your password') where user = 'root'; flush privileges; exit
So far, Mysql 5.7.19 winx64 decompression configuration installation has been completed! Wish you success!
Summary
The above is a detailed tutorial on installing MySQL5.7.19 for decompressed windows server. I hope it will help you. If you have any questions, please leave a message and I will reply to you in time. Thank you very much for your support for the help House website!