当前位置:网站首页>安装和登录安装
安装和登录安装
2022-07-22 18:53:00 【华为云】
一、 下载MySQL
Mysql官网下载地址https://downloads.mysql.com/archives/installer/
1. 选择想要安装的版本,点击Download下载
本篇文章选择的是5.7.31版本

二、 安装MySQL
1. 选择设置类型
双击运行mysql-installer-community-5.7.31.0.msi,这里选择是自定义安装,所以直接选择“Custom”,点击“Next”
“Developer Default”是开发者默认
“Server only”仅作为服务器安装
“Client only”仅作为客户端安装
“Full”是完整安装
“Custom”是自定义安装

2. 选择安装的产品和功能
依次点开“MySQL Servers”、“MySQL Servers”、“MySQL Servers 5.7”、“MySQL Servers 5.7.31 -64”,然后点击绿色箭头将选中的版本移植到右边选中框中
注:这里选择的是64位系统

3. 先选中“MySQL Server 5.7.31” ,之后点击下方的蓝色“Advanced Options”

4. 自定义安装路径和数据存放路径,更改完成之后点击“OK”
注:虽说安装在C盘也没毛病,但是个人建议不要安装到C盘,我安装到了D盘

5. 直接点击“OK”
注:这里因为选择了我自己创建的路径,故程序提示路径已存在,是否要继续

6. 更改完成之后点击“Next”

7. 确认一下安装路径和数据存放路径对不对,没有问题的话就直接点击Next

8. 直接点击“Yes”

9. 先选中“MySQL Server5.7.31”,若电脑中没有这个环境,会提示安装“Microsoft Visual C++ 2013”环境,点击“Execute”

10. 勾选中之后点击“Install”

11. 安装完成,点击“Close”

12. 看到这个对勾就说明这个环境安装上了,直接点击“Next”

13. 直接点击“Execute”

14. 出现这个图标就说明安装成功了,直接点击“Next”

15. 直接点击“Next”

16. 直接点击“Next”

17. 选择安装类型
个人学习研究的话选择“Development Computer”则可以,我这里选择是“Development Computer”
Development Computer 适合个人开发学习使用的
Server Computer 是像主要用于像FTP,email,web服务器等等
Dedicated Computer 只用作MySQL服务器

18. MySQL的默认端口是3306,不需要作修改,直接点击“Next”

19. 这里需要设置MySQL的密码,不需要太复杂,设置完了直接点击“Next”

20. 直接点击“Next”

21. 直接点击“Execute”,开始安装,点击安装之后需要等待片刻

22. 点击“Finish”

23. 点击“Next”

24. 点击“Finish”,此时MySQL安装完成

25. 在开始界面搜索mysql,点击第一个MySQL 5.7 Command Line Client

26. 输入刚才设置的MySQL的密码,按Enter键(回车键)

27. 出现下面界面就说明已经安装成功了

至此,MySQL数据库安装成功
三、 配置环境变量
1. 找到MySQL的安装路径

2. 右击此电脑选择“属性”

3. 先点击“高级系统设置”,再点击“环境变量”

4. 在“系统变量”中选择“Path”,点击“编辑”

5. 点击“新建”,将MySQL的安装路径添加上去,之后点击“确定”

6. 直接点击“确定”


7. 验证环境变量是否配置好,按下“window+R”键 弹出运行框,输入“cmd”进入window命令行

8. 输入“mysql -u root -p”按下回车

9. 输入密码,按下“Enter键(回车键)”,出现下面界面则是已经配置成功

制作不易,有帮助的话还希望能给个 点赞 支持下,谢谢大家。
边栏推荐
- Drawing lollipop chart with R language
- Memory leaks and overflows
- MySql 事务及其带来的问题和隔离级别
- China's open source is moving towards the second tier!
- 【JS】ES6-let、const定义变量
- Advanced Mathematics (Seventh Edition) Tongji University exercises 3-3 personal solutions
- Globally and Locally Consistent Image Completion 论文笔记
- 2022备忘录
- R语言 动态气泡图
- LSA related content in OSPF
猜你喜欢

Oracle switches users and queries database commands under linux environment

微信小程序开发:第一个helloWorld

使用mediapipe和OpenCV实现摄像头实时人脸检测

Nftscan and ATEM network have reached strategic cooperation in the field of NFT data

Image Inpainting for Irregular Holes Using Partial Convolutions 论文笔记

Why is the mobile phone signal poor when Im instant messaging is developed

Chapter 6.3: manual compilation of starrocks under arm architecture (expansion)

urllib的介绍和基本使用基本使用

Wang Huaimin, academician of the Chinese Academy of Sciences: thinking and practice of promoting China's open source innovation Consortium

How to configure a cute little shark theme for typera?
随机推荐
Thread类中run和start的区别
Learning Pyramid-Context Encoder Network for HighQuality Image Inpainting 论文笔记
R语言利用openxlsx包输出EXCEL报告
【黄啊码】MySQL入门—3、我用select *,老板直接赶我坐火车回家去,买的还是站票
剑指offer专项突击版第7天
NFTScan 与 Atem Network 在 NFT 数据领域达成战略合作
Li Xiang, director of ZTE cloud infrastructure open source and standards: open source risks and open source governance for enterprises
MySql 事务及其带来的问题和隔离级别
Conditions affectant la vitesse de requête de l'interface
R语言 动态气泡图
反射(类的加载)
强化学习第二章习题
R语言箱线图添加 t.test 显著性-
Where is db207-asemi rectifier bridge generally used? Db207 parameter size
Wechat applet development: the first HelloWorld
R语言生信图表学习之网络图
Jmeter-记一次自动化造数引发的BeanShell写入excel实例
Deep copy and shallow copy in JS
众昂矿业:萤石色彩丰富,极具审美价值
微信小程序开发:第一个helloWorld