mysql installer安装_MySQL Installer 8.0.21安装教程图文详解

1. 缘由

刚好需要在新系统上重新安装MySQL,便写了一份的下载安装教程,供查阅,以防日后细节有所遗忘。

2. 版本说明

MySQL Installer 8.0.21

3. 下载安装包

方式一:官网下载

b01037750e8d4c31f2cef241265c478e.png

4b0f459aa198cb8b9bc750ebca195e58.png

5273adcd244dcb504a18f31c783b4a98.png

f5ad7f925fb90925dd8a0e40ac323c72.png

方式二:镜像下载

官网下载的速度实在太慢了,最后搜索到一个北京理工大学的镜像下载:http://mirror.bit.edu.cn/mysql/downloads/MySQLInstaller/

7463ec753f0747c4a7a1fc442d24114b.png

4. 安装步骤

Step1:根据个人需求,选择安装类型

7154cb001392f8a8eec3fb05804ec68a.png

Step2:选择需要安装的内容

656dd68062214ca3443a62a1544c00a6.png

Step3:自定义安装路径

5644efe40a1b55441c86f8c5392b0764.png

Step4:检验需要,若不存在所需的环境,则予以安装

5e0bd1a148959fc16470d194b12e013d.png

c0c0eb8b89374a64bf000a6ab8d6d111.png

97015cdb8d20072181c90e56894cb53a.png

Step5:执行安装

ce8ef97bc9864597e235183c80ba824e.png

ae2f860d4f0c5623352148463943b3d3.png

Step6:配置MySQL

5ff70c16f73e906e9001c58d76f26552.png

① 选择数据存储引擎

2560ec407a06047d5fa708c784c0a31f.png

② 选择配置类型和数据库连接方式

8c36f3bb2fed7951289d59f7019e11d6.png

③ 选择身份验证方式

f99dba0572107cce5c94a1c3c4bd40a7.png

④ 设置账户密码

257841cee251b13dcb487eb7db6034de.png

⑤ 配置Windows服务(即:将MySQL Server 配置为Windows Service)

c9525814681bd44511bee807b4cf5adb.png

⑥ 应用配置的内容

b0169d917b277ed55b15354b8527b5d0.png

a30017392fa663827d229bded13512e0.png

★配置产生的问题

问题1:如何删除错误产生的Window Service

配置失败,想回到上一步看看是不是因为没有勾选开机自动开启的原因造成的,然后发现回到不到Apply Configuration的页面了,只好将Window Service的名字改成MySQL8021,这就造成了有一个之前失败的Window Service,想要将其删除

解决方式:

Step1: 使用cmd批处理命令卸载( 注意:必须"以管理员身份运行"方式运行cmd,否则会产生"[SC] OpenService 失败 5:拒绝访问" 的错误)

Net Stop ServiceName //若该服务未启动,可以省略该步骤

sc delete ServiceName //卸载服务

Step2:找到系统注册表,删掉服务的注册表信息,在HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services 下找到 MySQL80 并 删除该文件

Step3:service列表中还显示MySQL80服务,用管理员权限打开cmd 命令 sc delete serviceName,如果提示 “the specified service is marked as deletion”,关闭Window Service的面板,重新打开后,就会发现MySQL80服务消失了。

问题2:如何解决Starting the server 发生错误的问题

在将Window Service的名字改成MySQL8021并重新回到Apply Configuration的页面之后,发现仍然在Starting the server这步发生了错误

54f91d0aeef253ebc805bacf2a400753.png

通过查看日志可以发现:

2fc41f346b34d84246e41d7990549a44.png

解决方式:寻找到MySQL8021服务,右键点击“属性” → “登录” → 选择“本地系统账户”

b0361764c5d1040018f7a3b46af3ecc0.png

回到安装程序,在次点击Execute,会发现已经可以成功到Finish页面。

a30017392fa663827d229bded13512e0.png

Step7:配置MySQL环境变量① 配置 MYSQL_HOME 变量

af46929982a0233e26e308ec0732825c.png

② 配置Path变量

找到path编辑:输入%MYSQL_HOME%\bin

b35841b983d6c066692ad6cdafddfa1b.png

打开cmd输入 mysql –u root –p

输入root的密码,奇怪的是之前在安装时设置的密码似乎失效了,猜测是因为之前在window services里面的登录设置

7f6b6638762d44382d8577fd7bf58030.png

参考资料:

MySQL8.0.21.0社区版安装教程(图文详解)

Windows 10系统下彻底删除卸载MySQL的方法教程

MySQL8.0.20安装教程及其安装问题详细教程

总结

到此这篇关于MySQL Installer 8.0.21安装教程图文详解的文章就介绍到这了,更多相关MySQL Installer 8.0.21安装内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!

  • 15
    点赞
  • 76
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: MySQL InstallerMySQL官方提供的一款安装工具,可以方便地安装MySQL数据库及其相关工具。以下是MySQL Installer安装教程: 1. 下载MySQL Installer 首先,需要从MySQL官网下载MySQL Installer。打开MySQL官网(https://www.mysql.com/),点击“Downloads”菜单,选择“MySQL Installer”进行下载。 2. 运行MySQL Installer 下载完成后,双击运行MySQL Installer。在弹出的安装向导中,选择“Developer Default”安装类型,点击“Next”按钮。 3. 选择MySQL版本 在接下来的界面中,可以选择要安装MySQL版本。默认情况下,MySQL Installer安装最新版本的MySQL。如果需要安装其他版本,可以在“Available Products”中选择对应的版本,然后点击“Add”按钮添加到“Products/Features to be installed”列表中。 4. 安装MySQL 在“Products/Features to be installed”列表中,可以选择需要安装MySQL组件。默认情况下,MySQL Installer安装MySQL Server、MySQL Workbench和MySQL Shell。如果需要安装其他组件,可以在“Available Products”中选择对应的组件,然后点击“Add”按钮添加到“Products/Features to be installed”列表中。 5. 配置MySQL安装MySQL Server时,需要设置MySQL的root用户密码。在“Configuration”界面中,输入root用户密码,并确认密码。然后,点击“Next”按钮。 6. 完成安装安装完成后,MySQL Installer会显示安装完成的信息。点击“Finish”按钮退出安装向导。 以上就是MySQL Installer安装教程安装完成后,可以使用MySQL Workbench和MySQL Shell等工具来管理MySQL数据库。 ### 回答2: MySQL是一款功能强大的关系型数据库管理系统,拥有广泛的应用场景。MySQL安装过程相对简单,本文将为您详细介绍MySQLInstaller安装教程。 一、下载MySQLInstaller MySQLInstaller可以从MySQL官网 https://dev.mysql.com/downloads/installer/ 下载。下载完成后,运行安装程序。 二、安装MySQLInstallerMySQLInstaller程序中,您可以选择安装多个MySQL套件,如MySQL Server,MySQL Workbench和MySQL Shell等。在对应的选项卡中选择您需要安装的软件。 三、配置MySQL Server 1.选择“Customize”以选择要安装MySQL Server版本和配置选项。 2.设置MySQL root账户密码。 3.选择MySQL Server要运行的端口,默认情况下为3306端口。 4.配置MySQL Server的服务。 四、安装MySQL Workbench MySQL Workbench是MySQL的图形化管理工具,可以帮助用户管理和查询MySQL数据库。安装MySQL Workbench时,选择“Customize”以选择要安装的选项。 五、运行MySQL Shell MySQL Shell是一种命令行工具,可以用于连接和管理MySQL Server。安装MySQL Shell时,选择“Customize”以选择要安装的选项。 六、完成安装 安装完成后,您可以在MySQL安装目录下找到MySQL Server和MySQL Workbench等程序。打开MySQL Workbench并连接到MySQL Server,您可以使用root账户登录并开始管理MySQL数据库。 总结 MySQLInstaller为用户提供了一种方便的方式来安装和管理MySQL相关程序。通过本文的介绍,您应该能够轻松地完成MySQLInstaller安装和配置。在使用MySQL时,要注意数据库的安全性和性能调优,以获得最佳的使用体验。 ### 回答3: MySQL is a popular relational database management system that is widely used across various industries. To install MySQL, one can use the MySQL installer which is freely available for download from the official MySQL website. In this article, we will provide a step-by-step guide on how to install MySQL using the MySQL installer. Step 1: Download the Latest Version of the MySQL Installer The first step is to download the latest version of the MySQL installer from the MySQL website. Once you have downloaded the installer, run it as an administrator. Step 2: Choosing the Appropriate MySQL Installer Package The next step is to choose the appropriate MySQL installer package. There are two options available - either go for the default setup or custom setup. The default setup is recommended for beginners as it installs all the necessary components automatically. Alternatively, you can choose the custom setup if you want to specify which components you want to install. Step 3: Beginning the Installation Process After choosing the appropriate setup package, click the "Execute" button to begin the installation process. You will be prompted to accept the terms and conditions of the MySQL license agreement. Once you have accepted the license agreement, the installer will start to download all the necessary files from the internet. Step 4: Configuring the MySQL Server The next step is to configure the MySQL server. You will be prompted to choose the root password for the MySQL server. It is essential to choose a strong password to protect your data. Additionally, it is recommended to create a new Windows user account for the MySQL server. Step 5: Configuring the MySQL Workbench Once you have configured the MySQL server, the next step is to configure the MySQL Workbench. The MySQL Workbench is a graphical user interface that allows you to manage your MySQL databases and server. Configure the Workbench by setting a connection name, hostname, username, and password. Step 6: Completing the Installation Process After configuring the MySQL server and Workbench, the last step is to complete the installation process. Click the "Finish" button to complete the installation. You can now start using MySQL by opening the MySQL Workbench from the start menu or the desktop shortcut. In conclusion, installing MySQL using the MySQL installer is a straightforward process. You need to follow the above-mentioned steps carefully, and you will have MySQL up and running on your system in no time. The MySQL installer comes with all the necessary components, including the MySQL server and MySQL Workbench, making it a convenient choice for beginners.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值