当前位置:网站首页>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 !
边栏推荐
- Worried about "cutting off gas", Germany is revising the energy security law
- 1200. 最小绝对差
- Web知识补充
- C语言图书租赁管理系统
- 面试拆解:系统上线后Cpu使用率飙升如何排查?
- Source code compilation and installation of MySQL
- Cors: standard scheme of cross domain resource request
- C foundation in-depth learning II
- 中邮科技冲刺科创板:年营收20.58亿 邮政集团是大股东
- 2022 Shandong Province safety officer C certificate examination question bank and online simulation examination
猜你喜欢
面试官:Redis中哈希数据类型的内部实现方式是什么?
小程序直播 + 电商,想做新零售电商就用它吧!
Flet tutorial 03 basic introduction to filledbutton (tutorial includes source code) (tutorial includes source code)
数据库公共字段自动填充
JVM 内存布局详解,图文并茂,写得太好了!
1200. 最小绝对差
上汽大通MAXUS正式发布全新品牌“MIFA”,旗舰产品MIFA 9正式亮相!
Oracle was named the champion of Digital Innovation Award by Ventana research
提高MySQL深分页查询效率的三种方案
7 月数据库排行榜:MongoDB 和 Oracle 分数下降最多
随机推荐
数据库公共字段自动填充
2022KDD预讲 | 11位一作学者带你提前解锁优秀论文
Dgraph: large scale dynamic graph dataset
When MDK uses precompiler in header file, ifdef is invalid
CommVault cooperates with Oracle to provide metallic data management as a service on Oracle cloud
美国土安全部长:国内暴力极端主义是目前美面临的最大恐怖主义威胁之一
XML入门三
Understanding and difference between viewbinding and databinding
Source code compilation and installation of MySQL
Database lock table? Don't panic, this article teaches you how to solve it
Secretary of Homeland Security of the United States: domestic violent extremism is one of the biggest terrorist threats facing the United States at present
XML入门二
OpenHarmony应用开发之如何创建DAYU200预览器
三星量产3纳米产品引台媒关注:能否短期提高投入产出率是与台积电竞争关键
2022G3锅炉水处理考试题模拟考试题库及模拟考试
Flet教程之 03 FilledButton基础入门(教程含源码)(教程含源码)
2022年起重机械指挥考试模拟100题模拟考试平台操作
Node の MongoDB 安装
Samsung's mass production of 3nm products has attracted the attention of Taiwan media: whether it can improve the input-output rate in the short term is the key to compete with TSMC
高质量软件架构的唯一核心指标