当前位置:网站首页>数据库系统原理与应用教程(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,如下图所示。
边栏推荐
- process. env. NODE_ ENV
- AVL balanced binary search tree
- Smart Party Building: faith through time and space | 7.1 dedication
- C#/VB. Net merge PDF document
- 红队第8篇:盲猜包体对上传漏洞的艰难利用过程
- MLPerf Training v2.0 榜单发布,在同等GPU配置下百度飞桨性能世界第一
- Embedded development: five revision control best practices
- 圈铁发音,动感与无噪强强出彩,魔浪HIFIair蓝牙耳机测评
- idea启动Command line is too long问题处理
- Tutorial on principles and applications of database system (004) -- MySQL installation and configuration: resetting MySQL login password (Windows Environment)
猜你喜欢
运动捕捉系统原理
2023 spring recruitment Internship - personal interview process and face-to-face experience sharing
Endeavouros mobile hard disk installation
How to adjust the color of the computer screen and how to change the color of the computer screen
vscode 查找 替换 一个文件夹下所有文件的数据
【LeetCode】43. String multiplication
动作捕捉系统用于苹果采摘机器人
The supply of chips has turned to excess, and the daily output of Chinese chips has increased to 1billion, which will make it more difficult for foreign chips
process. env. NODE_ ENV
[每日一氵]Latex 的通讯作者怎么搞
随机推荐
Where should older test / development programmers go? Will it be abandoned by the times?
Research on multi model architecture of ads computing power chip
[PHP graduation design] design and implementation of textbook management system based on php+mysql+apache (graduation thesis + program source code) -- textbook management system
[nodemon] app crashed - waiting for file changes before starting...解决方法
Malaysia's Star: Sun Yuchen is still adhering to the dream of digital economy in WTO MC12
【每日一题】1175. 质数排列
数据库系统原理与应用教程(004)—— MySQL 安装与配置:重置 MySQL 登录密码(windows 环境)
AVL balanced binary search tree
Telecommuting experience? Let's introduce ourselves ~ | community essay solicitation
How to use phpipam to manage IP addresses and subnets
Action after deleting laravel's model
Submission lottery - light application server essay solicitation activity (may) award announcement
动作捕捉系统用于苹果采摘机器人
process. env. NODE_ ENV
【Hot100】19. 删除链表的倒数第 N 个结点
ssm框架原理
Problèmes rencontrés dans le développement de la GI pour maintenir le rythme cardiaque en vie
【Hot100】20. Valid parentheses
部门来了个拿25k出来的00后测试卷王,老油条表示真干不过,已被...
Principle of SSM framework