安装地址: https://downloads.mysql.com/archives/installer/
卸载软件geek(如果已安装MySQL,全部卸载干净): https://geekuninstaller.com/

第一步

第二步

第三步

第四步

第五步

第六步:每个组件单独选择,设置下载目录

第七步

第八步

第九步:如果3306端口被调用:win+r键后,在打开的窗口输入cmd回车,输入命令netstat -aon回车,如下图所示,找到端口3306被占用的PID,如图我这里是PID为11616的进程占用了3306端口

然后在任务栏右击,打开任务管理器,找到PID为11616的进程

选中进程后,鼠标右键结束任务

然后在MySQL中返回上一级,再点击next,端口显示正常

第十步

第十一步:设置数据库密码

第十二步:记住自己数据库名称

第十三步

第十四步

第十五步

第二十步

第二十一步

第二十二步:Win+r(cmd)命令行启动和关闭数据库
启动数据库:net start mysql80
关闭数据库:net stop mysql80

第二十三步:配置环境变量




E:\APP\MySQL\MySQL Server 8.0\bin

启动MySql
方式一:先启动数据库:net start mysql80,再命令行: mysql -u root -p,输入密码

方式二:点击软件MySQL 8.0 Command Line Client,输入安装时设置的密码


网友评论