当前位置:网站首页>MySQL最新版8.0.21安装配置教程~
MySQL最新版8.0.21安装配置教程~
2022-04-22 10:23:00 【m0_54850467】
目录
RDBMS(Relational Database Management System):关系型数据库管理系统
官网:https://www.mysql.com/
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-sg5R4pUt-1650586218955)(https://gitee.com/zhong_siru/images/raw/master/img/20200718152236.png)]
安装建议:尽量不要用.exe进行安装,用压缩包安装,对日后的卸载更为方便
下载地址:https://dev.mysql.com/downloads/mysql/
1、下载得到zip压缩包


然后就开始下载,下载完成,得到了压缩包

2、解压到要安装的目录
- 这里是 D:JAVA_EnvironmentMySQLmysql-8.0.21

3、添加环境变量
- 我的电脑–>属性–>高级–>环境变量
- 选择path添加:mysql安装目录下的bin文件夹地址
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-Espg85LO-1650586218956)(https://gitee.com/zhong_siru/images/raw/master/img/20200718152416.png)]
4、新建mysql 配置文件
-
在你的mysql安装目录下,新建my.ini文件,编辑 my.ini文件,注意替换路径位置
[mysqld]
basedir=D:JAVA_EnvironmentMySQLmysql-8.0.21
datadir=D:JAVA_EnvironmentMySQLmysql-8.0.21data
port=3306
D:JAVA_EnvironmentMySQLmysql-8.0.21要换成自己的目录
5、安装mysql服务
-
启动管理员模式下的cmd,并将路径切换至mysql安装目录下的bin目录,输入以下命令
cd d D:JAVA_EnvironmentMySQLmysql-8.0.21bin
mysqld -install
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-l0zFQuqU-1650586218957)(https://gitee.com/zhong_siru/images/raw/master/img/20200718152434.png)]
6、初始化数据文件
-
输入以下命令
mysqld --initialize-insecure --user=mysql
7、启动mysql
net start mysql
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-vJdXkYcY-1650586218957)(https://gitee.com/zhong_siru/images/raw/master/img/20200718152528.png)]
8、进入mysql管理界面修改密码(第一次输入密码回车即可)
-
输入以下第一条命令进入管理界面(p后面没有空格!!)
-
在输入第二条命令修改密码(最后一定要有分号)
mysql -u root -p #让你输入密码时直接回车即可
ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘你的密码’;出现如下结果即成功!

9、重启mysql即可正常使用
#退出mysql管理界面
exit
#停止mysql服务
net stop mysql
#开始mysql服务
net start mysql
想要更好看到排版的话,欢迎大家来访问我的个人博客~
Click Here
谢谢~~
谢~~
版权声明
本文为[m0_54850467]所创,转载请带上原文链接,感谢
https://blog.csdn.net/m0_54850467/article/details/124336443
边栏推荐
- OneFlow學習筆記:從Functor到OpExprInterpreter
- 最通俗易懂的依赖注入之生命周期
- Two ways to write Coriolis (understand 'fn.length' and 'FN. Tostring()')
- Use of checkbox
- The most detailed Kali system configuration and installation tutorial in the whole network. My mother will read it!
- TC397 EVADC
- Has2022 | the 19th Huawei global analyst conference is about to start!
- NavigationView的使用
- MySQL进阶之数据的增删改查(DML)
- Cloud leopard intelligence, a DPU chip head enterprise, joined the openeuler community to help Digital China infrastructure
猜你喜欢

关于tpshop开源商城6.0版本图片库不显示图片问题

Qt关于信号槽连接出现的一些问题记录
![Idea writes sparksql program in local [*] mode, which can be run. Classnotfoundexception occurs when it is submitted to spark yarn for running](/img/67/065e2b047ba26d67924b458141d73b.png)
Idea writes sparksql program in local [*] mode, which can be run. Classnotfoundexception occurs when it is submitted to spark yarn for running

【sv】 assign force区别

003-MySQL索引

About the problem that the picture library of tpshop open source mall version 6.0 does not display pictures

企业级 Web 开发的挑战

Analysis of image lazy loading (three implementation methods and two optimization methods)

004-MYSQL的查询过程

ORACLE数据库查询锁表语句sql脚本,以及删除锁信息脚本(数据库开发ETL、DBA必备)
随机推荐
在互联网+的背景下,企业如何创新客户服务?
半个月东山再起,如果你哪天失业了,请务必收藏好5大自媒体工具
Google Earth engine (GEE) -- aggregate grid population data
golang time strings常用方法
Summary of time function in Oracle
About the problem that the picture library of tpshop open source mall version 6.0 does not display pictures
企业级 Web 开发的挑战
Textview sets the display color of the specified character
Meituan side: have you used jstat, jmap, mat in the production time? Can you give me a practical example?
「译文」给讨厌YAML的人的10个写YAML的建议
Google Earth Engine(GEE)——聚合网格化人口数据
oracle中時間函數總結
Error message during unity3d build: missing project ID in unity solution
.pm format perl
LLVM之父Chris Lattner:编译器的黄金时代
5. Embedded controller (EC) learns PS / 2 protocol
【uvm】 raise_objection之前不能加入消耗仿真时间的语句
golang 时间格式化
Windows下oracle11.2.0.1升级至oracle11.2.0.4
Intermediary model