找到 zip包,下载即可,版本自己选择...
开始安装MySQL
配置环境变量,创建MYSQL_HOME :值为 D:\mysql-8.0.20-winx64
path 最后加上 配置 为 %MYSQL_HOME%\bin
下面的步骤比较重要
命令:
mysqld --initialize-insecure --user=mysql
mysqld -install
net start MySQL
mysql -u root -p
select host,user,authentication_string from mysql.user;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
flush privileges;
这时候,可以使用客户端登陆mysql,使用比较方便
我这里使用 navicat客户端
启动MySQL服务:net start MySQL
停止mysql服务:net stop mysql
标签:10,mysql,Window,mysqld,user,MySQL,net,com
来源: https://www.cnblogs.com/weigy/p/13193076.html