当前位置:网站首页>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 !
边栏推荐
- OpenHarmony应用开发之如何创建DAYU200预览器
- FS7867S是一款应用于数字系统供电电源电压监控的电压检测芯片
- C language Dormitory Management Query Software
- 面试官:Redis中哈希数据类型的内部实现方式是什么?
- JVM 内存布局详解,图文并茂,写得太好了!
- 392. 判断子序列
- XILINX/system-controller-c/BoardUI/无法连接开发板,任意操作后卡死的解决办法
- Introduction to reverse debugging PE structure resource table 07/07
- CA: efficient coordinate attention mechanism for mobile terminals | CVPR 2021
- 【Antd】Antd 如何在 Form.Item 中有 Input.Gourp 时获取 Input.Gourp 的每一个 Input 的value
猜你喜欢
Introduction to reverse debugging PE structure resource table 07/07
锐成芯微冲刺科创板:年营收3.67亿拟募资13亿 大唐电信是股东
2022 hoisting machinery command examination simulation 100 questions simulation examination platform operation
三星量产3纳米产品引台媒关注:能否短期提高投入产出率是与台积电竞争关键
苹果5G芯片研发失败:继续依赖高通,还要担心被起诉?
基于STM32+华为云IOT设计的酒驾监控系统
提高MySQL深分页查询效率的三种方案
好博医疗冲刺科创板:年营收2.6亿 万永钢和沈智群为实控人
博士申请 | 西湖大学学习与推理系统实验室招收博后/博士/研究实习等
1200. 最小绝对差
随机推荐
js中的变量提升和函数提升
Node mongodb installation
高质量软件架构的唯一核心指标
2022KDD预讲 | 11位一作学者带你提前解锁优秀论文
Byte interview algorithm question
2022年起重机械指挥考试模拟100题模拟考试平台操作
Personalized online cloud database hybrid optimization system | SIGMOD 2022 selected papers interpretation
30:第三章:开发通行证服务:13:开发【更改/完善用户信息,接口】;(使用***BO类承接参数,并使用了参数校验)
2022危险化学品经营单位主要负责人练习题及模拟考试
.Net之延迟队列
免费、好用、强大的轻量级笔记软件评测:Drafts、Apple 备忘录、Flomo、Keep、FlowUs、Agenda、SideNote、Workflowy
Scripy framework learning
Redis —— How To Install Redis And Configuration(如何快速在 Ubuntu18.04 与 CentOS7.6 Linux 系统上安装 Redis)
结合案例:Flink框架中的最底层API(ProcessFunction)用法
Getting started with the go language is simple: go implements the Caesar password
2022g3 boiler water treatment examination question simulation examination question bank and simulation examination
嵌入式编程中五个必探的“潜在错误”
Web knowledge supplement
C语言图书租赁管理系统
C语言个人通讯录管理系统