当前位置:网站首页>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 !
边栏推荐
- Introduction to XML III
- One of the solutions for unity not recognizing riders
- 面试官:Redis中哈希数据类型的内部实现方式是什么?
- 逆向调试入门-PE结构-资源表07/07
- C array supplement
- JVM系列——栈与堆、方法区day1-2
- 2022危险化学品经营单位主要负责人练习题及模拟考试
- 30: Chapter 3: develop Passport Service: 13: develop [change / improve user information, interface]; (use * * * Bo class to accept parameters, and use parameter verification)
- 美国土安全部部长警告移民“不要踏上危险的旅程”
- 读取 Excel 表数据
猜你喜欢
CTF competition problem solution STM32 reverse introduction
上汽大通MAXUS正式发布全新品牌“MIFA”,旗舰产品MIFA 9正式亮相!
MySQL 45 lecture - learn the actual combat notes of MySQL in Geek time 45 lecture - 06 | global lock and table lock_ Why are there so many obstacles in adding a field to the table
Understanding and difference between viewbinding and databinding
MySQL45讲——学习极客时间MySQL实战45讲笔记—— 06 | 全局锁和表锁_给表加个字段怎么有这么多阻碍
CVPR 2022 | 大幅减少零样本学习所需的人工标注,提出富含视觉信息的类别语义嵌入(源代码下载)...
JVM系列——栈与堆、方法区day1-2
JVM series - stack and heap, method area day1-2
源码编译安装MySQL
2022年起重机械指挥考试模拟100题模拟考试平台操作
随机推荐
2022年山东省安全员C证考试题库及在线模拟考试
苹果5G芯片研发失败:继续依赖高通,还要担心被起诉?
.NET 使用 redis
美国土安全部部长警告移民“不要踏上危险的旅程”
C language Dormitory Management Query Software
Flet tutorial 03 basic introduction to filledbutton (tutorial includes source code) (tutorial includes source code)
C语言小型商品管理系统
Interview disassembly: how to check the soaring usage of CPU after the system goes online?
担心“断气” 德国正修改《能源安全法》
MySQL8版本免安装步骤教程
HAProxy高可用解决方案
C foundation in-depth study I
C語言宿舍管理查詢軟件
基于链表管理的单片机轮询程序框架
unity不识别rider的其中一种解决方法
C语言程序设计选题参考
2022KDD预讲 | 11位一作学者带你提前解锁优秀论文
205. 同构字符串
C array supplement
Ws2811 m is a special circuit for three channel LED drive and control, and the development of color light strip scheme