当前位置:网站首页>数据库系统原理与应用教程(001)—— MySQL 安装与配置:MySQL 软件的安装(windows 环境)
数据库系统原理与应用教程(001)—— MySQL 安装与配置:MySQL 软件的安装(windows 环境)
2022-07-01 16:14:00 【睿思达DBA_WGX】
数据库系统原理与应用教程(001)—— MySQL 安装与配置:MySQL 软件的安装(windows 环境)
一、下载 MySQL 软件
1、进入 MySQL官网(网址:https://www.mysql.com/),单击 DOWNLOADS,如下图所示。

2、在页面的下方【DOWNLOADS】区域中选择【MySQL Community Server】,如下图所示。

3、在弹出的页面中单击【Archives】,如下图所示。

4、在弹出的页面中选择 MySQL 的版本号(5.5.58)、操作系统的类型(windows)以及操作系统的版本(根据需要选择32位版本或64位版本),如果选择 ALL 则显示所有版本。此处选择下载64位版本的 MySQL,如下图所示。

单击【Download】按钮完成软件的下载。
二、安装 MySQL
1、双击下载的安装文件,弹出如下图所示的安装向导。

2、单击【Next】按钮,显示用户许可协议窗口,如下图所示。

3、选中【I accept the terms in the License Agreement】选项,单击【Next】按钮,弹出如下图所示的【选择安装类型】窗口。

4、单击【Typical】,选择典型安装,弹出如下图所示的【准备开始安装 MySQL】界面,单击【Install】开始安装。

5、安装完成。如果选中【Launch the MySQL Instance Configuration Wizard】选项,单击【Finish】则弹出配置 MySQL 向导。否则,则结束安装,可以使用手工配置 MySQL。

三、配置 MySQL
MySQL 安装完成后,选中【Launch the MySQL Instance Configuration Wizard】选项,单击【Finish】则弹出配置 MySQL 向导,对 MySQL 进行配置。
1、MySQL 配置向导如下图所示。

2、单击【Next】按钮,弹出配置类型窗口,选择详细配置(Detailed Configuration),如下图所示。

3、单击【Next】按钮,弹出选择 MySQL 服务器类型窗口,选择开发者类型(Developer Machine),如下图所示。

MySQL 服务器类型一共有三种:
开发者类型(Developer Machine):开发使用,所需内存较少。
服务器类型(Server Machine):用作服务器,所需内存较多。
专用 MySQL 服务器(Dedicate MySQL Server Machine):专门用作数据库服务器,所需的内存最多。
4、单击【Next】按钮,弹出选择数据库用途窗口,选择多功能数据库(Multifunctional Database),如下图所示。

数据库用途一共有三种:
多功能数据库(Multifunctional Database):同时使用 InnoDB 存储引擎和 MyISAM 存储引擎。
事务处理数据库(Transaction Database Only):支持事务处理。
非事务处理数据库(Non-Transaction Database Only):不支持事务处理,禁用 InnoDB 存储引擎。
5、单击【Next】按钮,弹出选择表空间位置窗口,选择默认位置(安装路径),如下图所示。

6、单击【Next】按钮,弹出设置并发连接窗口,选择手动设置(Manual Setting),如下图所示。

并发连接设置有三种:
决策支持(Decision Support,DSS/OLAP):并发量较小。
联机事务处理(Online Transaction Processing,OLTP):并发量较大。
手动设置(Manual Setting):自定义并发量。
7、单击【Next】按钮,弹出配置网络窗口,设置端口号(3306)等信息,如下图所示。

Port Number(端口号):3306,可以更改为其他端口号。
Add firewall exception for this port(在防火墙注册此端口号):选中此选项,允许远程计算机登录 MySQL。
Enable Strict Mode(标准模式):对输入数据进行严格检查。
8、单击【Next】按钮,弹出选择字符集窗口,选择手动设置的默认字符集编码(Manual Selected Default Character Set/Collation):手动选择字符集 Latin1,如下图所示。

字符集选择有三个选项:
标准字符集(Standard Character Set):默认字符集为 Latin1
支持多种语言(Best Support For Multilingualism):默认字符集为 utf8
手动设置的默认字符集编码(Manual Selected Default Character Set/Collation):手动选择字符集
9、单击【Next】按钮,弹出配置 windows 服务窗口,如下图所示。

选择 Install As Windows Service:将 MySQL安装为 windows 服务。
Service Name:MySQL 服务名,默认为 MySQL。
选择 Launch the MySQL Server Automatically:自动启动 MySQL 服务。
选择 Include Bin Directory in Windows PATH:将 MySQL 的 Bin 目录添加到环境变量中。
10、单击【Next】按钮,弹出配置类型窗口,选择详细配置(Detailed Configuration),如下图所示。

选择 Modify Security Setting:选择此选项,为 MySQL 设置登录密码。如果不选择该选项,则 MySQL 不需要密码就可以登录。
Enable root access from remote machines:是否允许 root 用户在其他计算机上登录。
Create An Anonymous Account:创建一个匿名用户,该用户可以连接数据库,但不能操作数据。
11、单击【Next】按钮,进入准备执行窗口,如下图所示。

12、单击【Execute】按钮,MySQL 将按照配置向导的设置进行配置,单击【Finish】完成配置,如下图所示。

四、测试
打开 windows 命令行窗口,使用 root 用户登录 MySQL,如下图所示。

边栏推荐
- Sweden announced its decision to exclude Huawei 5g equipment, but Huawei has successfully found a new way out
- 韩国AI团队抄袭震动学界!1个导师带51个学生,还是抄袭惯犯
- Programming examples of stm32f1 and stm32subeide - production melody of PWM driven buzzer
- Does 1.5.1 in Seata support mysql8?
- Sqlserver query: when a.id is the same as b.id, and the A.P corresponding to a.id cannot be found in the B.P corresponding to b.id, the a.id and A.P will be displayed
- Origin2018 installation and use (sorting)
- 制造业数字化转型究竟是什么
- Malaysia's Star: Sun Yuchen is still adhering to the dream of digital economy in WTO MC12
- How to adjust the color of the computer screen and how to change the color of the computer screen
- 【每日一题】1175. 质数排列
猜你喜欢

Summer Challenge harmonyos canvas realize clock

数据库系统原理与应用教程(004)—— MySQL 安装与配置:重置 MySQL 登录密码(windows 环境)

Do280 management application deployment - pod scheduling control

Problèmes rencontrés dans le développement de la GI pour maintenir le rythme cardiaque en vie

How to use MySQL language for row and column devices?

DO280管理应用部署--pod调度控制

芯片供应转向过剩,中国芯片日产增加至10亿,国外芯片将更难受

Stonedb is building blocks for domestic databases, and the integrated real-time HTAP database based on MySQL is officially open source!

Tutorial on principles and applications of database system (006) -- compiling and installing MySQL 5.7 (Linux Environment)

怎么用MySQL语言进行行列装置?
随机推荐
【Hot100】20. 有效的括号
毕业后5年,我成为了年薪30w+的测试开发工程师
投稿开奖丨轻量应用服务器征文活动(5月)奖励公布
2023 spring recruitment Internship - personal interview process and face-to-face experience sharing
【LeetCode】43. 字符串相乘
Problèmes rencontrés dans le développement de la GI pour maintenir le rythme cardiaque en vie
Red team Chapter 8: blind guess the difficult utilization process of the package to upload vulnerabilities
虚拟串口模拟器和串口调试助手使用教程「建议收藏」
2022 Moonriver global hacker song winning project list
【Hot100】17. 电话号码的字母组合
Does 1.5.1 in Seata support mysql8?
July 1, 2022 Daily: Google's new research: Minerva, using language models to solve quantitative reasoning problems
Pico,是要拯救还是带偏消费级VR?
[IDM] IDM downloader installation
Pico, do you want to save or bring consumer VR?
普通二本,去过阿里外包,到现在年薪40W+的高级测试工程师,我的两年转行心酸经历...
Authentication processing in interface testing framework
数据库系统原理与应用教程(004)—— MySQL 安装与配置:重置 MySQL 登录密码(windows 环境)
近半年内连获5家“巨头”投资,这家智能驾驶“黑马”受资本追捧
Submission lottery - light application server essay solicitation activity (may) award announcement