当前位置:网站首页>MySQL 5.5 series installation steps tutorial (graphical version)
MySQL 5.5 series installation steps tutorial (graphical version)
2022-08-09 18:23:00 【51CTO】
MySQL 5.5系列安装教程<详细版>
- 安装 步骤
[名称]:MySQL 5.5.58
[大小]:64位/37MB 32位/35MB
[语言]:英文
[适用系统]:win7,win8,win10系统
[简介]:MySQL是一个关系型数据库管理系统,关系数据库将数据保存在不同的表中,而不是将所有数据放在一个大仓库内,这样就增加了速度并提高了灵活性.MySQL所使用的 SQL 语言是用于访问数据库的最常用标准化语言.MySQL 是最流行的关系型数据库管理系统之一,在 WEB 应用方面,MySQL是最好的RDBMS (Relational Database Management System,关系数据库管理系统)应用软件.
MySQL安装文件分为两种,一种是msi格式的,一种是zip格式的.如果是msi格式的可以直接点击安装,按照它给出的安装提示进行安装;zip格式是自己解压,解压缩之后其实MySQL就可以使用了,但是要进行配置.
软件下载:
安装版: https://downloads.mysql.com/archives/installer/

解压版: https://dev.mysql.com/downloads/mysql/

安装 步骤
解压版
1、将下载好的安装包 鼠标右击,选择 解压,将压缩包mysql-winx64.zip解压到目标位置.如:D盘.

2、解压得到一个文件夹,打开它,新建一个my.ini配置文件,And create a new one named data的文件夹.

`3.打开配置文件my.ini,添加下面内容,看到里面的basedir(MySQL的安装路径)和datadir(The path where the database file is located) basedir添加的是MySQL的解压路径;datadir添加的是MySQL的data文件夹路径.
4.接下来就是配置环境变量,首先把bin的地址复制:打开MySQLUnzip inside the folderbin文件夹,Click the mouse over the address bar to select it,复制地址(The purpose of this is to prevent typing errors,而且方便).

5.把刚刚复制的bin路径添加的Path变量值,具体方法是:打开电脑桌面:计算机—>右击“属性”—>高级系统设置—>高级—>环境变量(N)—>修改Path;Just paste the copied address bar at the end.(这里注意的是不同的路径之间用英文的“;”分开)确定,退出.

6.以管理员身份运行cmd(一定要用管理员身份运行,不然权限不够),具体方法是:Right-click the Command Prompt window,选择“以管理员身份运行”.Then in a command prompt window,进到MySQL解压目录下的bin文件(不管有没有配置过环境变量,也要进入bin文件夹,否则之后启动服务仍然会报错误):具体方法是:这里以DThe path under the disk as an example:
输入:D:
cd MySQL\bin

7.mysqld --initialize-insecure --user=mysql(使用-initialize初始化,用-insecure生成空密码.默认帐号root,后面的-user=mysql不更改.)
8.安装MySQL,具体方法是:在之前的D:\MySQL\bin>后输入:mysqld –install
注:mysqld –remove命令用来删除MySQL

9.启动服务,继续在cmd中输入:net start mysql(如图),服务启动成功!

注:停止服务的命令是 net stop mysql
It can also be started and stopped in interface modemysql服务.
具体方法:右击“计算机”→“管理”→“服务与应用程序”→“服务”,在服务窗口中找到“mysql”服务,右击它,启动或停止.

注意:If it has not been run before7步命令:mysqld --initialize-insecure --user=mysql ,May cause the service to fail to start. (In this case, the command should be used firstmysqld –remove卸载mysql,再运行该命令)
命令mysqld --initialize-insecure --user=mysql的作用:使用-initialize初始化,用-insecure生成空密码.默认帐号root,后面的-user=mysql不更改.

10.服务启动成功之后,就可以登录了,如图,输入mysql -u root -p(第一次登录没有密码,直接按回车过),登录成功!

`
安装板
1.下载
2.Create a folder with an English path to install the database
3、鼠标右击 mysql-5.5.58-winx64,选择 安装

4、点击Next

5、勾选 I accept the …,点击Next

6、Here you can choose to install according to your needs.I only intend to install the main program heremysql server,所以我选择了Custom

7、点击Browse…

8、安装位置选择,I'm not going to create a new folder here,Only change the default location of the installation disk,把C改成了D,The following paths remain unchanged.

9、点击Next

10、点击 Install

11、安装中

12、点击Finish

13、点击Next

14、Normally this step will not happen,Because I have another version installed on my computer before,So here let me choose,I choose the one that is being installed5.5版本,点击Next

15、Next

16、Next

17、Next

18、Next

19、选择 Manual Setting 点击Next

20、Next

21、选择Manual Selected…,下拉框里选择utf-8或者gbk,点击Next

22、勾选,点击Next

23、设置密码,要记住密码.勾选,点击Next

24、点击Execute(执行)

25、安装中

26、全部安装完成后,点击Finish

27、右击开始菜单,点击 运行

28、输入:cmd 点击 确定

29、输入mysql -u root -p 然后按回车键(键盘上的Enter键)

30、输入密码

31、OK,可以看到版本信息.MySQLA command line window has been launched,在此我们可以对数据库进行操作了.

感谢阅读~
边栏推荐
猜你喜欢

Heap series_0x09: Example of heap corruption (illegal access + uninitialized + heap handle mismatch)

Super hot summer air conditioner

网络——2021年大题解析

网络——数据交换方式

视频聊天源码——一对一直播如何提高直播质量?

Selenium的安装

测试工作管理与规范

【燃】是时候展现真正的实力了!一文看懂2022华为开发者大赛技术亮点

Volatile:JVM 我警告你,我的人你别乱动

Smart Light Pole Gateway Smart Transportation Application
随机推荐
std::uniform_real_distribution的一个bug引发的服务器崩溃
网络——ARP、DHCP、ICMP协议
Swagger2 knife4j NullPointerException 空指针问题
【挨踢(IT)初体验】
Heap series_0x0A: 3 methods to solve the heap overflow problem at once
自定义过滤器和拦截器实现ThreadLocal线程封闭
AVL树的插入操作
Knowledge Bits - How to Write a Project Summary
智慧灯杆网关智慧交通应用
3种特征分箱方法!
yolov5训练并生成rknn模型以及3588平台部署
网络——虚拟专用网和地址转换NAT
The second chapter: create an interactive map (2.1 2.3)
【完美解决v-if导致echart不显示问题】
网络——IPV4地址(一)
网络——IPv6 vs IPv4
良匠-手把手教你写NFT抢购软(二)
Chapter 4: Using Local Geospatial Data (4.6-4.14)
Became CTO, was killed by my boss in 6 months, I lost 10 million
ESP8266-Arduino编程实例-MQ-4气体传感器驱动