安装包:官网链接在此
https://dev.mysql.com/downloads/installer/
安装教程
https://jingyan.baidu.com/article/0bc808fc1fb9761bd585b97d.html
安装完后,
1.如果要使用navicat ,需要在cmd中执行如下命令
cd C:\Program Files\MySQL\MySQL Server 8.0\bin
mysql -hlocalhost -uroot -p
然后输入密码,进入mysql
use mysql;
alter user 'root' @'localhost' identified with mysql_native_passwprd by 'hynu504.';
flush privileges;
进行完这步成功后,就可以在navicat 上连接本地的mysql了