First, download the Windows version of MySQL installation package
1, Mysql Download: https: //dev.mysql.com/downloads/mysql/
Click the Download button to go to the download page, click on the figure below No thanks, just start my download. Download immediately:
After the download is complete, we will extract the zip package to the appropriate installation directory (not recommended to choose the default C drive, choose another larger disk space)
Second, install and start the MySQL database
1, as an administrator cmd to open the command-line tool, go to the directory:
cd D:\mysql-8.0.19-winx64\bin
2, Installing MySQL command:
mysqld install
3, initialization data directory:
mysqld --initialize-insecure
4, the start command:
net start mysql
After installing MySQL has a default administrator username and password are both "root"
Third, the installation visualization tool Navicat
Download: http: //down1.zmnrz.com/cx/20191206/1/Navicat_131_419023.exe
The next step has been installed, you can change the installation path
Four, Navicat MySQL connection
1, open Navicat, click "Connect", select mysql, disposed below FIG.
However, when linking MYSQL given Navicat met: Authentication plugin 'caching_sha2_password.
Solution:
1. Open cmd, open mysql installation bin directory, mysql landing at the command prompt box, the command is as follows:
mysql -u root -p
Then enter the password, if not done, then modify the default password is root
2, enter the command in mysql, change passwords
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
(不要忘记最后的分号)