当前位置:网站首页>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 !
边栏推荐
- 【Antd踩坑】Antd Form 配合Input.Group时出现Form.Item所占据的高度不对
- C array supplement
- Detailed explanation of Fisher information quantity detection countermeasure sample code
- 常见 content-type对应表
- 博士申请 | 西湖大学学习与推理系统实验室招收博后/博士/研究实习等
- 【Antd】Antd 如何在 Form.Item 中有 Input.Gourp 时获取 Input.Gourp 的每一个 Input 的value
- Fisher信息量检测对抗样本代码详解
- 英视睿达冲刺科创板:年营收4.5亿 拟募资9.79亿
- 小程序直播 + 电商,想做新零售电商就用它吧!
- golang fmt.printf()(转)
猜你喜欢

CVPR 2022 | 大幅减少零样本学习所需的人工标注,提出富含视觉信息的类别语义嵌入(源代码下载)...
提高MySQL深分页查询效率的三种方案

ViewBinding和DataBinding的理解和区别

.Net之延迟队列
Three schemes to improve the efficiency of MySQL deep paging query

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

结合案例:Flink框架中的最底层API(ProcessFunction)用法

Doctoral application | West Lake University Learning and reasoning system laboratory recruits postdoctoral / doctoral / research internship, etc

The only core indicator of high-quality software architecture

unity不识别rider的其中一种解决方法
随机推荐
.NET 使用 redis
C語言宿舍管理查詢軟件
Fs4056 800mA charging IC domestic fast charging power IC
2022危险化学品经营单位主要负责人练习题及模拟考试
Redis —— How To Install Redis And Configuration(如何快速在 Ubuntu18.04 与 CentOS7.6 Linux 系统上安装 Redis)
華昊中天沖刺科創板:年虧2.8億擬募資15億 貝達藥業是股東
C language dormitory management query software
Oracle 被 Ventana Research 评为数字创新奖总冠军
Openharmony application development how to create dayu200 previewer
JVM系列——栈与堆、方法区day1-2
Worried about "cutting off gas", Germany is revising the energy security law
SQL语言
三星量产3纳米产品引台媒关注:能否短期提高投入产出率是与台积电竞争关键
硬件基础知识-二极管基础
德明利深交所上市:市值31亿 为李虎与田华夫妻档
XML入门二
CTF competition problem solution STM32 reverse introduction
C语言图书租赁管理系统
Fs7867s is a voltage detection chip used for power supply voltage monitoring of digital system
C#基础深入学习二