1, download the installation package - choose the right version according to your computer system: https://dev.mysql.com/downloads/mysql/
2, configure the environment variables
The downloaded archive decompression 2.1
2.2 Environment Variables
win 10 computers so go
3, generates data files
In your unzipped directory, eg: F: \ Program Files \ mysql-8.0.17-winx64 \ bin, run as administrator cmd
Performing mysqld --initialize-insecure --user = mysql data directory generated under directory eg
4, install mysql
Execute the command: mysqld -install
5, start mysql service
net start mysql
6, modify the login password
The first time you log in without a password, directly enter, mysql -u root -p
View user commands: select user, authentication_string from mysql.user;
Because previous versions of mysql8 encryption rule is mysql_native_password, and after mysql8, encryption rules are caching_sha2_password,
Navicat so I want to be able to connect to the mysql, you must modify the mysql user password encryption rule reduced to mysql_native_password.
ALTER USER 'root' @ 'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; # modify the encrypted rules
ALTER USER 'root' @ 'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; # update about the user's password
FLUSH PRIVILEGES; #刷新权限
ALTER USER 'root'@'localhost' IDENTIFIED BY '新密码'; 以这种方式修改密码
7、用navicat 连接mysql即可