当前位置:网站首页>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
边栏推荐
- 吃透Chisel语言.07.Chisel基础(四)——Bundle和Vec
- MySQL5免安装修改
- 奇妙秘境 码蹄集
- 分布式BASE理论
- Secretary of Homeland Security of the United States: domestic violent extremism is one of the biggest terrorist threats facing the United States at present
- IP 实验室月复盘 · 第 5 期
- 源码编译安装MySQL
- Install Trinity and solve error reporting
- 自主工业软件的创新与发展
- 吃透Chisel语言.05.Chisel基础(二)——组合电路与运算符
猜你喜欢
30:第三章:开发通行证服务:13:开发【更改/完善用户信息,接口】;(使用***BO类承接参数,并使用了参数校验)
Flet tutorial 03 basic introduction to filledbutton (tutorial includes source code) (tutorial includes source code)
Fisher信息量检测对抗样本代码详解
国内酒店交易DDD应用与实践——代码篇
JVM memory layout detailed, illustrated, well written!
Five "potential errors" in embedded programming
数据库公共字段自动填充
吃透Chisel语言.11.Chisel项目构建、运行和测试(三)——Chisel测试之ScalaTest
安装Mysql
MySQL5免安装修改
随机推荐
软件测试之测试评估
美国土安全部部长警告移民“不要踏上危险的旅程”
基于YOLOv1的口罩佩戴检测
Unittest中的TestSuite和TestRunner
Fisher信息量检测对抗样本代码详解
E-week finance | Q1 the number of active people in the insurance industry was 86.8867 million, and the licenses of 19 Payment institutions were cancelled
ASP. Net core introduction I
华昊中天冲刺科创板:年亏2.8亿拟募资15亿 贝达药业是股东
Distributed base theory
使用默认路由作为指向Internet的路由
Fs4056 800mA charging IC domestic fast charging power IC
基于PaddleX的智能零售柜商品识别
go语言中的文件创建,写入,读取,删除(转)
Getting started with microservices
以房抵债能否排除强制执行
js中的变量提升和函数提升
How to choose a technology stack for web applications in 2022
吃透Chisel语言.07.Chisel基础(四)——Bundle和Vec
go vendor 项目迁移到 mod 项目
Introduction to reverse debugging PE structure resource table 07/07