当前位置:网站首页>MySQL version 8 installation Free Tutorial
MySQL version 8 installation Free Tutorial
2022-07-04 14:00:00 【Zhilan was born in a deep valley】
MySQL8 Version installation Free Tutorial
1、 download Mysql8 Installation free package
website :MySQL :: Download MySQL Community Server
2、 decompression

3、 Configure environment variables


4、 modify my.ini file
[mysqld]
# Set up 3306 port
port=3306
# Set up mysql Installation directory
basedir=D:\MySql\mysql-8.0.22-winx64
# Set up mysql Database data storage directory
datadir=D:\MySql\mysql-8.0.22-winx64\Data
# Maximum connections allowed
max_connections=200
# Number of connection failures allowed .
max_connect_errors=10
# The character set used by the server defaults to utf8mb4
character-set-server=utf8mb4
# The default storage engine that will be used when creating a new table
default-storage-engine=INNODB
# By default “mysql_native_password” Plug in authentication
#mysql_native_password
default_authentication_plugin=mysql_native_password
[mysql]
# Set up mysql Client default character set
default-character-set=utf8mb4
[client]
# Set up mysql The default port when the client connects to the server
port=3306
default-character-set=utf8mb4
5、 Initialize the database and install 、 Login database
First open the command prompt as an administrator (cmd)
1、 Initialize database
Generate initial password , yes [email protected] After the character , We need to write it down , I use .
# The path must be in the installation folder
mysqld --initialize --console
2、 install MySQL service
# mysqld --install service name , here ⽤mysql8 As a service name
mysqld --install mysql8
3、 Start the service
# net start service name
net start mysql8
4、 Sign in MySQL
send ⽤ Default assigned password ( The initial password ) Into the ⾏ Sign in
mysql -uroot -p Initial password
5、 modify root password
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password
BY 'xxx'; xxx It's you ⾃⼰ Defined password .
Refresh
flush privileges;
6、 Log back in
The new password can also log in successfully !
边栏推荐
- JVM 内存布局详解,图文并茂,写得太好了!
- Flet教程之 03 FilledButton基础入门(教程含源码)(教程含源码)
- 2022 hoisting machinery command examination simulation 100 questions simulation examination platform operation
- 美国土安全部长:国内暴力极端主义是目前美面临的最大恐怖主义威胁之一
- 205. 同构字符串
- C foundation in-depth learning II
- Secretary of Homeland Security of the United States: domestic violent extremism is one of the biggest terrorist threats facing the United States at present
- Cors: standard scheme of cross domain resource request
- 面试拆解:系统上线后Cpu使用率飙升如何排查?
- Fisher信息量检测对抗样本代码详解
猜你喜欢

ASP.NET Core入门一

CommVault cooperates with Oracle to provide metallic data management as a service on Oracle cloud

Node の MongoDB安装

Introduction to reverse debugging PE structure resource table 07/07

Install Trinity and solve error reporting

安装trinity、解决报错

MySQL45讲——学习极客时间MySQL实战45讲笔记—— 06 | 全局锁和表锁_给表加个字段怎么有这么多阻碍

动画与过渡效果

面试拆解:系统上线后Cpu使用率飙升如何排查?

JVM 内存布局详解,图文并茂,写得太好了!
随机推荐
三星量产3纳米产品引台媒关注:能否短期提高投入产出率是与台积电竞争关键
【Antd踩坑】Antd Form 配合Input.Group时出现Form.Item所占据的高度不对
JVM系列——栈与堆、方法区day1-2
Web knowledge supplement
c#数组补充
C语言集合运算
安装trinity、解决报错
The Secretary of Homeland Security warned immigrants "not to embark on a dangerous journey"
DGraph: 大规模动态图数据集
C语言职工管理系统
OPPO Find N2产品形态首曝:补齐各项短板
C foundation in-depth study I
Commvault 和 Oracle 合作,在 Oracle 云上提供 Metallic数据管理即服务
C语言课程设计题
Doctoral application | West Lake University Learning and reasoning system laboratory recruits postdoctoral / doctoral / research internship, etc
C语言宿舍管理查询软件
Introduction to XML I
微服务入门
7 月数据库排行榜:MongoDB 和 Oracle 分数下降最多
C语言程序设计选题参考