当前位置:网站首页>数据库系统原理与应用教程(003)—— MySQL 安装与配置:手工配置 MySQL(windows 环境)
数据库系统原理与应用教程(003)—— MySQL 安装与配置:手工配置 MySQL(windows 环境)
2022-07-01 16:14:00 【睿思达DBA_WGX】
数据库系统原理与应用教程(003)—— MySQL 安装与配置:手工配置 MySQL(windows 环境)
目录
一、安装 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。
二、配置环境变量
1、找到 MySQL 的安装路径,打开 bin 目录,把 bin 路径【C:\Program Files\MySQL\MySQL Server 5.5\bin】复制到剪贴板,如下图所示。
2、在桌面上右击【此电脑】, 选择【属性】,如下图所示。
3、在弹出的【设置】窗口中,输入【环境】,然后在下拉列表中选择【编辑系统环境变量】,如下图所示。
4、在弹出的【系统属性】对话框中,单击【环境变量】按钮,如下图所示。
5、在弹出的【环境变量】对话框中选择【Path】,然后单击【编辑】按钮,如下图所示。
6、在弹出的【编辑环境变量】对话框中单击【新建】按钮,把 MySQL 的 bin 路径粘贴到最后一行,如下图所示。
7、单击【确定】按钮完成环境变量的配置。
注意:环境变量配置完成后必须重新打开 cmd 命令行窗口才会生效。
三、安装并启动 MySQL 服务
1、以管理员身份打开 windows 命令行窗口,如下图所示。
2、在命令行窗口,输入以下命令安装 MySQL 服务
3、输入以下命令启动 MySQL 服务
4、查看 MySQL 服务信息
(1)在桌面上右击【此电脑】, 选择【管理】,如下图所示。
(2)在弹出的【计算机管理】对话框中选择【服务和应用程序】,然后单击【服务】,在右侧的窗格中找到 MySQL 服务。可以看到 MySQL 服务的信息如下:(1)名称:MySQL;(2)状态:正在运行;(3)启动类型:自动。
四、设置 root 账号的登录密码
以上步骤设置完成后,root 账号默认没有登录密码。此时,root 账号可以直接登录,不需要密码。如下图所示。
为 root 账户设置登录密码:使用 root 账户登录系统,执行以下命令。
重新登录 MySQL,可以使用 root 账号,密码【123456】登录系统,如下图所示。
边栏推荐
- Learn selenium to simulate mouse operation, and you can be lazy a little bit
- 近半年内连获5家“巨头”投资,这家智能驾驶“黑马”受资本追捧
- She is the "HR of others" | ones character
- 使用腾讯云搭建图床服务
- Example of vim user automatic command
- 【Hot100】20. 有效的括号
- Problems encountered in IM instant messaging development to maintain heartbeat
- Five years after graduation, I became a test development engineer with an annual salary of 30w+
- Uncover the "intelligence tax" of mousse: spend 4billion on marketing, and only 7 invention patents
- 用手机在同花顺上开户靠谱吗?这样有没有什么安全隐患
猜你喜欢
EndeavourOS移动硬盘安装
Programming examples of stm32f1 and stm32subeide - production melody of PWM driven buzzer
vscode 查找 替换 一个文件夹下所有文件的数据
芯片供应转向过剩,中国芯片日产增加至10亿,国外芯片将更难受
【Hot100】17. Letter combination of telephone number
idea启动Command line is too long问题处理
使用腾讯云搭建图床服务
毕业后5年,我成为了年薪30w+的测试开发工程师
嵌入式开发:5个修订控制最佳实践
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
随机推荐
Golang爬虫框架初探
StoneDB 为国产数据库添砖加瓦,基于 MySQL 的一体化实时 HTAP 数据库正式开源!
Authentication processing in interface testing framework
How to adjust the size of computer photos to what you want
Embedded development: five revision control best practices
AVL balanced binary search tree
怎麼用MySQL語言進行行列裝置?
Example of vim user automatic command
Talking from mlperf: how to lead the next wave of AI accelerator
数据库系统原理与应用教程(004)—— MySQL 安装与配置:重置 MySQL 登录密码(windows 环境)
ThinkPHP kernel work order system source code commercial open source version multi user + multi customer service + SMS + email notification
Pico,是要拯救还是带偏消费级VR?
Apple's self-developed baseband chip failed again, which shows Huawei Hisilicon's technological leadership
广东用电量大跌,说明高新技术产业替代高能耗产业已取得初步成果
Submission lottery - light application server essay solicitation activity (may) award announcement
In the era of super video, what kind of technology will become the base?
Pico, do you want to save or bring consumer VR?
【SQL语句】请问这边为什么select出了两个上海,查询出了不同的count我想让他变成一个上海,count只显示一个总和
Introduction to RT thread env tool (learning notes)
全面看待企业数字化转型的价值