MySQL8.0.17 download and install

Download environment: Windows 10

Download:  https://dev.mysql.com/downloads/mysql/

1. extracting archive, modifying the extracted directory.

2. E: New my.ini file the \ \ mysql-8.0.17-winx64 mysql-8.0.17-winx64, copy the code to which the following

[mysqld]
# 3306 port disposed
Port = 3306
# Set mysql installation directory
basedir = E: \\ mysql-8.0.17 -winx64 \\ mysql-8.0.17-winx64 # Important here must use double slash
# Set data storage directory database mysql
datadir = E: \\ mysql-8.0.17 -winx64 \\ mysql-8.0.17-winx64 \\ data # supra here
# maximum number of connections
max_connections = 200
number of times of connection failures allowed # . This is to prevent someone from trying to attack the database system from the host
max_connect_errors = 10
# character set the server uses the default is UTF8
Character-the SET-Server = UTF8MB4
default storage engine that will be used when # create a new table
default-storage-engine = INNODB
# default "mysql_native_password" plug-in authentication
default_authentication_plugin = mysql_native_password
[mysql]
# mysql client to set the default character set
default-character-the sET = UTF8MB4
[client]
# set the default time server mysql client connection port
port = 3306
default-character-set=UTF8MB4

3. Set the system variables. The E: \ mysql-8.0.17-winx64 \ mysql-8.0.17-winx64 \ bin appended to the Path.

 

 

 

 

 

4. Open cmd, to run as administrator (important).

 

 

 5. Switch directory, and mysqld - the initialize - Console initialization database

 

 

 The above root @ locallhost: behind is the default password, then it is useful.

 

7. Use  mysqld install [service name] command to install mysql service, if the service [name] does not fill, the default is 'mysql'.

 

 

 

 8. Use the net start mysql start the service

 

 

9. The installation is complete!

10. Enter mysql -u root -p landing, press Enter to confirm, if installed correctly and MySQL is running, you get the following response, and then enter the password to log in mysql.

 

 

 

11. password changes. Copy ALTER USER 'root' @ 'localhost ' IDENTIFIED WITH mysql_native_password BY ' new password';

To the command line to change the password .

 

Guess you like

Origin www.cnblogs.com/daydayupup/p/11634781.html
Recommended