当前位置:网站首页>MySQL latest version 8.0.21 installation and configuration tutorial~
MySQL latest version 8.0.21 installation and configuration tutorial~
2022-04-22 10:33:00 【m0_ fifty-four million eight hundred and fifty thousand four hu】
Catalog
-
- 1、 Download it zip Compressed package
- 2、 Unzip to the directory you want to install
- 3、 Add environment variables
- 4、 newly build mysql The configuration file
- 5、 install mysql service
- 6、 Initialization data file
- 7、 start-up mysql
- 8、 Get into mysql Modify password in management interface ( Enter the password for the first time and press enter )
- 9、 restart mysql It can be used normally
RDBMS(Relational Database Management System): Relational database management system
Official website :https://www.mysql.com/
[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-sg5R4pUt-1650586218955)(https://gitee.com/zhong_siru/images/raw/master/img/20200718152236.png)]
Installation recommendations : Try not to use .exe Installation , Install with compressed package , It is more convenient for unloading in the future
Download address :https://dev.mysql.com/downloads/mysql/
1、 Download it zip Compressed package


Then start downloading , Download complete , Got the compressed package

2、 Unzip to the directory you want to install
- Here is D:JAVA_EnvironmentMySQLmysql-8.0.21

3、 Add environment variables
- My computer –> attribute –> senior –> environment variable
- choice path add to :mysql Install under directory bin Folder address
[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-Espg85LO-1650586218956)(https://gitee.com/zhong_siru/images/raw/master/img/20200718152416.png)]
4、 newly build mysql The configuration file
-
In your mysql Installation directory , newly build my.ini file , edit my.ini file , Be careful Replace path location
[mysqld]
basedir=D:JAVA_EnvironmentMySQLmysql-8.0.21
datadir=D:JAVA_EnvironmentMySQLmysql-8.0.21data
port=3306
D:JAVA_EnvironmentMySQLmysql-8.0.21 Change to your own directory
5、 install mysql service
-
start-up Administrator mode Under the cmd, And switch the path to mysql Install under directory bin Catalog , Enter the following command
cd d D:JAVA_EnvironmentMySQLmysql-8.0.21bin
mysqld -install
[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-l0zFQuqU-1650586218957)(https://gitee.com/zhong_siru/images/raw/master/img/20200718152434.png)]
6、 Initialization data file
-
Enter the following command
mysqld --initialize-insecure --user=mysql
7、 start-up mysql
net start mysql
[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-vJdXkYcY-1650586218957)(https://gitee.com/zhong_siru/images/raw/master/img/20200718152528.png)]
8、 Get into mysql Modify password in management interface ( Enter the password for the first time and press enter )
-
Enter the first command below to enter the management interface (p There is no space after !!)
-
After entering the second command, change the password ( Finally, there must be a semicolon )
mysql -u root -p # Let you enter your password and enter directly
ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘ Your password ’;The following results are successful !

9、 restart mysql It can be used normally
# sign out mysql Management interface
exit
# stop it mysql service
net stop mysql
# Start mysql service
net start mysql
If you want to see the typesetting better , Welcome to visit my personal blog ~
Click Here
thank you ~~
thank ~~
版权声明
本文为[m0_ fifty-four million eight hundred and fifty thousand four hu]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204221022482989.html
边栏推荐
- Symfony3. 4. The database reverse generation entity has been solved
- 电脑清理C盘(系统盘)以及磁盘压缩(磁盘分区)、扩展(磁盘扩容)。
- Two ways to write Coriolis (understand 'fn.length' and 'FN. Tostring()')
- 使用 Bitnami PostgreSQL Docker 镜像快速设置流复制集群
- Dynamic visualization of data based on pyqt5
- A simple PLC motion control project
- async 函数
- 公有云降本增效最佳实践
- Google Adsense suggests that the advertising capture tool is wrong, which may lead to reduced revenue. What should we do
- Introduction and basic use of numpy Library
猜你喜欢

(产品资源)明德扬AD8488模块高性能数字X射线FMC接口128模拟通道高速ADC芯片

Analysis and interpretation of the current situation and challenges faced by enterprise operation and maintenance in the digital era

被滥用的“架构师”!

下一代web服务器Caddy —— 筑梦之路

TC397 EVADC

003-MySQL索引

What common problems will you encounter when entering the field of robot UAV?

Laya Uncaught ReferenceError: spine is not defined
![[leetcode] the first mock exam of two tree traversal iteration method.](/img/2a/4fb0de0f001738729a0051c14a1e5d.jpg)
[leetcode] the first mock exam of two tree traversal iteration method.

Use of checkbox
随机推荐
async 函数
安全远程访问+安全文件传输+终端仿真+远程管理丨上海道宁联合VanDyke为IT行业人员带来可靠的、易于配置的软件
Async function
"Notes" exchange of SRE operation and maintenance system transformation of a telecom company
004-MYSQL的查询过程
"Translation" 10 suggestions for people who hate yaml to write yaml
MySQL数据库常识之储存引擎
PCIE XDMA IP核介绍(附列表)-明德扬科教(mdy-edu.com)
【leetcode】94. Middle order traversal of binary tree
在互联网+的背景下,企业如何创新客户服务?
Spa first screen loading optimization
Two ways to write Coriolis (understand 'fn.length' and 'FN. Tostring()')
OneFlow学习笔记:从Functor到OpExprInterpreter
Google Adsense suggests that the advertising capture tool is wrong, which may lead to reduced revenue. What should we do
soatest初步认识
基于PyQt5实现数据动态可视化
High quality notes on how MySQL works: understanding MySQL from the root
Use of navigationview
Php get IP Limits submissions in minutes for verification code Getting too frequently
Share a projection mapping software