ufv7wshwmv1sa1 发表于 2023-2-1 22:48:18

mysql5.5安装教程:mysql下载与安装

目录

第一步:安装前清理环境
第二步:下载Mysql5.5.62安装包
第三步:安装Mysql5.5.62
第四步:Mysql环境变量配置
第五步:启动Mysql数据库服务

本文适合人群:想要学习Mysql数据库的同学
电脑操作系统:windows 7
本文将介绍Mysql5.5.62版本的下载与安装教程,电脑操作系统是win7,废话不多说,直接开始。
第一步:安装前清理环境(如果没有安装过Mysql,略过此步骤)

(1)在控制面板卸载安装失败的Mysql数据库系统(没有安装或者已经卸载略过)
(2)检查C:\ProgramData目录下是否有“Mysql”文件夹,如果有删除。
(3)检查C:\Program Files (x86)和C:\Program Files目录下是否有“Mysql”文件夹,如果有删除。
(4)清除注册表。
·搜索打开注册表编辑器
开始——搜索“regedit”——进入注册表编辑器

https://p3-sign.toutiaoimg.com/pgc-image/fa5a2e334bba4838a67b173e99b4cc60~tplv-tt-large.image?x-expires=1990623838&x-signature=itEZ%2BL0u3YhLWU3Vwa9HNZkPSj0%3D

按Ctrl+F,调出速搜框,搜索“Mysql”的注册信息。

https://p3-sign.toutiaoimg.com/pgc-image/b3abafb644ed433f8129e609a51a8343~tplv-tt-large.image?x-expires=1990623838&x-signature=ZUdWGAGkcEFfzbaluJaeezdQpRI%3D

搜索时间较长,需要耐心等待。搜索到后删除,然后继续Ctrl+F查找一下个Mysql注册信息,直到所有Mysql注册信息全部删除,提示“注册表搜索完毕”。

https://p3-sign.toutiaoimg.com/pgc-image/d3b9bbd683304bddb6f3f7368af14e4c~tplv-tt-large.image?x-expires=1990623838&x-signature=1h7CVLlPxQH8wtJO00W5Kyj%2B0uk%3D


https://p3-sign.toutiaoimg.com/pgc-image/da99b4d378c94e488b67f79ff2ffb24a~tplv-tt-large.image?x-expires=1990623838&x-signature=r1qekAPdCk7k3d8SjWS8mEVleHQ%3D

第二步:下载Mysql5.5.62安装包

下载Mysql5.5.62安装包
Mysql5.5.62百度云盘下载链接:https://pan.baidu.com/s/1xEIFt0VGYTSK9s3iaGqY2Q
提取码:7ckd
如果链接和提取码失效请联系QQ:2217622915。
第三步:开始安装Mysql5.5.62

1、 双击运行“mysql-installer-community-5.5.62.0.msi”文件

https://p3-sign.toutiaoimg.com/pgc-image/a0e91e6cb950481abd3759870d1a434c~tplv-tt-large.image?x-expires=1990623838&x-signature=zB7wkYQRTYbZgZBivxdiyf%2FaBCE%3D


https://p3-sign.toutiaoimg.com/pgc-image/0f5fd3dcaf724c56a87f73abd663f373~tplv-tt-large.image?x-expires=1990623838&x-signature=BRpu%2BFQE4bL1A8b98YAqxWBpjt4%3D


https://p3-sign.toutiaoimg.com/pgc-image/8a2168f2d0d34af7bcf7d86b9cc8ec00~tplv-tt-large.image?x-expires=1990623838&x-signature=bFZvT6LCR8uT1%2BxRzL9urqZA5JE%3D


https://p3-sign.toutiaoimg.com/pgc-image/46fa6a161b884c9bab0b1a1271929374~tplv-tt-large.image?x-expires=1990623838&x-signature=zhMg8bkVAw6JRaE5%2BvKVLIVhP0c%3D


https://p3-sign.toutiaoimg.com/pgc-image/656a14b38c79489e8ffa278571b95bde~tplv-tt-large.image?x-expires=1990623838&x-signature=xM08775J5xmwdT%2FEDymvMZZ7lgA%3D


https://p3-sign.toutiaoimg.com/pgc-image/37aabb0d13d946b5b8f439997316fd34~tplv-tt-large.image?x-expires=1990623838&x-signature=Dskj2t4D%2Bg8jVE0I6hpPOuGmcrA%3D


https://p3-sign.toutiaoimg.com/pgc-image/145841c2ca784306b65c38ad97ec2a4f~tplv-tt-large.image?x-expires=1990623838&x-signature=n%2BXU42q9lRsAqlz7xe%2B5oOBp24c%3D


https://p3-sign.toutiaoimg.com/pgc-image/880ecf0dd2bd47f4b4d0e21b847ad1e6~tplv-tt-large.image?x-expires=1990623838&x-signature=xl86pMN3xM0Zv%2BwmDMjqQ%2Bp%2F1h0%3D

给数据库设置密码。友情提示:密码一定要记好!

https://p3-sign.toutiaoimg.com/pgc-image/913652a607f64410a8689a6085786a86~tplv-tt-large.image?x-expires=1990623838&x-signature=hWc%2Fq9qvHeEDFPPSpk%2FJ10B%2FurE%3D

一定要注意这里设置的服务名称,启动和关闭命令都需要用到。

https://p3-sign.toutiaoimg.com/pgc-image/8de3918fa40a4fa1ac6a9dbf75e739bb~tplv-tt-large.image?x-expires=1990623838&x-signature=68P8M3jnf47o3JT8IwiAmd%2BMpq0%3D


https://p3-sign.toutiaoimg.com/pgc-image/1a7952dd78fd4f71bd7a92f6c3481cba~tplv-tt-large.image?x-expires=1990623838&x-signature=2BC2SrdWO4q4Qjm3549IbYRbiaQ%3D


https://p3-sign.toutiaoimg.com/pgc-image/d28b31735aac458fb648e13eed81a358~tplv-tt-large.image?x-expires=1990623838&x-signature=QAPhnfWIfkOUaI3%2Bbr8RGiclzn0%3D


https://p3-sign.toutiaoimg.com/pgc-image/081d991092a34a51bed79f1eece9e56e~tplv-tt-large.image?x-expires=1990623838&x-signature=1KVgMmS6JeKMr1fxx5CmFGAtyGo%3D

好了,Mysql5.5.62安装成功。
第四步:Mysql环境变量配置

计算机——右键——属性——高级系统设置——环境变量——用户变量 PATH——编辑

https://p3-sign.toutiaoimg.com/pgc-image/2f38a3fbdd2f4f4ebde0a8409e499543~tplv-tt-large.image?x-expires=1990623838&x-signature=V7L7GKHow1BD%2FeDSvHkHzu2nDig%3D


https://p3-sign.toutiaoimg.com/pgc-image/da1e57a29ad54b42b116c9e11ca07004~tplv-tt-large.image?x-expires=1990623838&x-signature=xBmZl0GRJefvYs18Q1gyKItLSw8%3D


https://p3-sign.toutiaoimg.com/pgc-image/790704b357664d5286267d9b14502be7~tplv-tt-large.image?x-expires=1990623838&x-signature=HyGDUoo1QkdYSjKxwow6GSCf5dk%3D

·在原有的变量值后面增加一个英文分号“;”(如果已经有英文分号就不加了)
·粘贴Mysql数据库bin文件夹的路径(以下默认路径)
C:\Program Files\MySQL\MySQL Server 5.5\bin
·编辑好后,点击确定保存。

第五步:启动Mysql数据库服务

方法一:
计算机——右键——管理——服务和应用程序——服务——Mysql55(你的数据库服务名称)——右键——启动

https://p3-sign.toutiaoimg.com/pgc-image/8e71494d82e34b2f95a9578e827fbd81~tplv-tt-large.image?x-expires=1990623838&x-signature=nnEQbfCqqyVW2gI3caNfUIS8EGo%3D


https://p3-sign.toutiaoimg.com/pgc-image/0a36d3ae580043c69f21b4f8ec59a81a~tplv-tt-large.image?x-expires=1990623838&x-signature=7FpPqD75pE5T6DExVYHqxVLmVcE%3D


https://p9-sign.toutiaoimg.com/pgc-image/5c18017ffccd491e85fd0b95f407292c~tplv-tt-large.image?x-expires=1990623838&x-signature=XNBtWYjNsf9wiqo6WTo81CGhP5E%3D

找到Mysql的服务名称右键,然后点击启动。(我这里已经启动了)
方法二:

https://p3-sign.toutiaoimg.com/pgc-image/4ccdb14b241b47508a03dccd6fb5e66b~tplv-tt-large.image?x-expires=1990623838&x-signature=CbyQC9VF6CVgB9JUAeFdv7SyBww%3D


https://p3-sign.toutiaoimg.com/pgc-image/8e71494d82e34b2f95a9578e827fbd81~tplv-tt-large.image?x-expires=1990623838&x-signature=nnEQbfCqqyVW2gI3caNfUIS8EGo%3D


https://p3-sign.toutiaoimg.com/pgc-image/0a36d3ae580043c69f21b4f8ec59a81a~tplv-tt-large.image?x-expires=1990623838&x-signature=7FpPqD75pE5T6DExVYHqxVLmVcE%3D


https://p3-sign.toutiaoimg.com/pgc-image/5c18017ffccd491e85fd0b95f407292c~tplv-tt-large.image?x-expires=1990623838&x-signature=TjYrCaMQrxr8qvCbE3mEXwYgA4A%3D

启动mysql服务命令:

net start + myql服务名称
我安装的mysql数据库名称为mysql55,所以输入:

net stat mysql55
提示:“请求的服务已经启动”

喜欢就关注一下吧。
页: [1]
查看完整版本: mysql5.5安装教程:mysql下载与安装