当前位置:网站首页> MySQL 8.0.28 安装配置图文教程
MySQL 8.0.28 安装配置图文教程
2022-06-09 15:04:00 【1024问】
本文为大家分享了MySQL 8.0.28 安装配置图文教程,供大家参考,具体内容如下
一、下载并配置安装文件1、进入官网下载mysql安装包

2、解压安装包,如下图所示

3、添加配置文件my.ini
新建一个文本文件,将下列内容复制到文件中,并将文件另存为.ini格式
[mysqld]# 设置3306端口port=3306# 设置mysql的安装目录basedir=D:\\Program Files\\MySQL# 允许最大连接数max_connections=200# 允许连接失败的次数。max_connect_errors=10# 服务端使用的字符集默认为utf8mb4character-set-server=utf8mb4# 创建新表时将使用的默认存储引擎default-storage-engine=INNODB# 默认使用“mysql_native_password”插件认证#mysql_native_passworddefault_authentication_plugin=mysql_native_password[mysql]# 设置mysql客户端默认字符集default-character-set=utf8mb4[client]# 设置mysql客户端连接服务端时默认使用的端口port=3306default-character-set=utf8mb4注意: basedir 为mysql的安装目录,根据自己的喜好可以自行设定
4、创建mysql安装目录
此处创建的安装目录就是在my.ini中配置的 basedir的路径,如果配置的目录已经存在则无需再创建了,若没有则需要创建。
5、将之前下载的MYSQL文件和新添加的my.ini文件复制到此文件夹下。
二、配置环境变量1、打开控制面板,并选择系统,如下图所示

2、选择高级选项,打开环境变量

3、在Path环境变量中 增加MYSQL安装目录的bin目录,如下图所示

1、进入C:\Windows\System32目录下,找到cmd.exe,右键选择“以管理员身份运行”

2、输入以下命令,进入到安装文件的bin目录下
cd /d D:\Program Files\MySQL\bin(如图所示)

3、执行初始化命令 mysqld --initialize --console,如下图所示

4、执行安装命令
mysqld –install(如下图所示)

5、执行启动MySQL服务命令
net start mysql(如下图所示)

1、使用Navicat连接mysql

2、新建连接

3、连接成功以后,会提示密码过期,输入新密码即可

边栏推荐
- 薪酬不變,每周只上四天班,英國試行全球最大規模“四天工作制”
- Taoist friend, what have you done with redis?
- Using kubekey to build kubernetes/kubesphere environment“
- 技术干货 | Linkis实践:新引擎实现流程解析
- tmux(Terminal MultipleXer)命令使用
- The salary remains unchanged, only four days a week. The UK is trying out the world's largest "four-day working system"
- Design of cache address mapping and transformation and associated directory table in cache memory
- List used by icomponent of unity dots
- 国货彩妆,败走618
- Gaussdb (DWS) functions and supporting tools [Gauss is not a mathematician this time]
猜你喜欢

【MUI+Flask+MongoDB+HBuilderX】APP开发之答题积分逻辑详解

FCPX插件:动态物体运动模糊视觉特效Motion Blur FX by MA
![[paper] cascade r-cnn: delving into high quality object detection](/img/7d/f5ebd89cd8963fe45d4894077ca25b.png)
[paper] cascade r-cnn: delving into high quality object detection

品牌与产品的二律背反

技术干货 | Linkis实践:新引擎实现流程解析

Error 1062 in database, error reporting

高速缓冲存储器Cache地址映像与变换及相联目录表的设计
![[paper] cascade rpn: delving into high quality region proposal network with adaptive revolution](/img/bc/675a4cd11ceb69cdc5be1864003be0.png)
[paper] cascade rpn: delving into high quality region proposal network with adaptive revolution

在大厂做了5年测试,5月被无情辞退,想给摸鱼的兄弟提个醒

@Enablefeignclients annotation source code analysis
随机推荐
QT MSVC compiler Chinese problem solving, Chinese garbled and unable to compile normally
文化和自然遗产日,任务空投来了
@Enablefeignclients annotation source code analysis
In June, 2022, China Database ranking: tidb made a comeback to win the crown, and Dameng was dormant and won the flowers in May
使用 KubeKey 搭建 Kubernetes/KubeSphere 环境的“心路(累)历程“
[cloud native | kubernetes] in depth understanding of pod (VI)
Global backbone network was interrupted for 4 hours: Google cloud, AWS, azure, etc. were affected
格林大华期货开户安全吗?在哪里可以开户?
860. 柠檬水找零
CICC digital intelligence China II: five questions and five answers to database business market
品牌与产品的二律背反
BAT和FAANG的时代翻篇儿了,谁来接棒?
View lazy loading in applet
Using kubekey to build kubernetes/kubesphere environment“
鸿蒙移植i.mx6ull(八) 内存映射(基于IMX6ULL)
华为哈勃将再添IPO,美芯晟蛰伏十余年后冲刺科创板
The panorama of yuancosmos industrial investment, fast step into the new era of yuancosmos!
松下高管:苹果CarPlay不是威胁 而是对自家产品的补充
ZeroSSL 支持给 IP 地址申请 SSL 证书了,但有瑕疵!
在大厂做了5年测试,5月被无情辞退,想给摸鱼的兄弟提个醒