当前位置:网站首页>Install MySQL
Install MySQL
2022-07-04 14:07:00 【Pie big star Lala】
One 、 download
Mysql Official website :https://dev.mysql.com/downloads/mysql/
Download and unzip
Two 、 To configure
Create a new one under the unzip directory my.ini file
Write the following code
[mysqld]
# Set up 3306 port
port=3306
# Set up mysql Installation directory ---------- Is your file path -------------
basedir=D:\ProgramFiles\mysql-8.0.29-winx64
# Set up mysql Database data storage directory --------- Is your file path data The folder is created by itself
#datadir=D:\mysql\mysql\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
Be careful : The path in the configuration file should be consistent with the actual path , Don't create... Manually Data Folder !!!
3、 ... and 、 initialization MySQL
With Administrators Run command prompt as
Be careful : What follows is your own path !!!
stay MySQL In the catalog bin Execute command under directory :
mysqld --initialize --console
My password is :ebdA_2ybmdrs
( write down )
install mysql Service and start
mysqld --install mysql
MySQL service
net start mysql
After input
mysql -uroot -p
Enter the password above
Change Password
ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';
Just quit
Configure environment variables
In turn, open
This computer -> attribute -> Advanced system setup -> environment variable
Create a new... In the system variable
Variable name :MYSQL_HOME
A variable's value :MySQL The catalog of
Then find... In the system variable Path Variable
add to %MYSQL_HOME%\bin
Then right-click this computer -> management -> Services and Applications -> service
find mysql Change the startup type to manual
边栏推荐
- DGraph: 大规模动态图数据集
- Fs4056 800mA charging IC domestic fast charging power IC
- markdown 语法之字体标红
- 2022年山东省安全员C证考试题库及在线模拟考试
- Use the default route as the route to the Internet
- Worried about "cutting off gas", Germany is revising the energy security law
- Fs7867s is a voltage detection chip used for power supply voltage monitoring of digital system
- Openharmony application development how to create dayu200 previewer
- Gorm 读写分离(转)
- gorm 之数据插入(转)
猜你喜欢
Unittest框架中引入TestFixture
2022 Shandong Province safety officer C certificate examination question bank and online simulation examination
Qt如何实现打包,实现EXE分享
源码编译安装MySQL
硬件基础知识-二极管基础
. Net delay queue
分布式BASE理论
JVM memory layout detailed, illustrated, well written!
1200. 最小绝对差
Interview disassembly: how to check the soaring usage of CPU after the system goes online?
随机推荐
. Net delay queue
OPPO Find N2产品形态首曝:补齐各项短板
ViewBinding和DataBinding的理解和区别
程序员转方向
华昊中天冲刺科创板:年亏2.8亿拟募资15亿 贝达药业是股东
吃透Chisel语言.06.Chisel基础(三)——寄存器和计数器
MySQL 5 installation and modification free
C语言课程设计题
Introduction to reverse debugging PE structure resource table 07/07
find命令报错: paths must precede expression(转)
markdown 语法之字体标红
JVM memory layout detailed, illustrated, well written!
392. 判断子序列
Getting started with microservices
Fs7867s is a voltage detection chip used for power supply voltage monitoring of digital system
FS4059C是5V输入升压充电12.6V1.2A给三节锂电池充电芯片 输入小电流不会拉死,温度60°建议1000-1100MA
软件测试之测试评估
苹果5G芯片研发失败:继续依赖高通,还要担心被起诉?
国内酒店交易DDD应用与实践——代码篇
逆向调试入门-PE结构-资源表07/07