数据库
首页 > 数据库> > Windows 11 安装 MySQL 5.7.35

Windows 11 安装 MySQL 5.7.35

作者:互联网

 

1.MySQL官网下载mysql5.7.35 压缩包

打开MySQL Community Server官网:https://downloads.mysql.com/archives/community/

 

 

2.解压压缩包到


3.配置环境变量MYSQL_HOME,并将%MYSQL_HOME%\bin配置到环境变量PATH


4.以管理员身份运行CMD,进入%MYSQL_HOME%\bin目录,执行mysqld --initialize --console


5.安装MySQL57服务:CMD执行mysqld --install MYSQL57


6.启动MySQL57服务:CMD执行net start mysql57


7.登录MySQL5.7:CMD执行mysql -u root -P 3305 -h localhost -p U7#QSigua+>.


8.修改root用户密码:alter user 'root'@'localhost' identified by '123456';


7.停止MySQL57服务:CMD执行net stop mysql57

 

标签:11,5.7,Windows,CMD,--,MYSQL,MySQL,MySQL57,root
来源: https://www.cnblogs.com/iTarget/p/16401911.html