当前位置:网站首页>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
边栏推荐
- 【R语言数据科学】:交叉验证再回首
- Deming Lee listed on Shenzhen Stock Exchange: the market value is 3.1 billion, which is the husband and wife of Li Hu and Tian Hua
- Animation and transition effects
- 吃透Chisel语言.04.Chisel基础(一)——信号类型和常量
- 【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法
- Variable promotion and function promotion in JS
- 近日小结(非技术文)
- MySQL5免安装修改
- Golang 使用 JSON unmarshal 数字到 interface{} 数字变成 float64 类型(转)
- Fs4056 800mA charging IC domestic fast charging power IC
猜你喜欢

markdown 语法之字体标红

中邮科技冲刺科创板:年营收20.58亿 邮政集团是大股东

吃透Chisel语言.12.Chisel项目构建、运行和测试(四)——Chisel测试之ChiselTest

Ruichengxin micro sprint technology innovation board: annual revenue of 367million, proposed to raise 1.3 billion, Datang Telecom is a shareholder

Unity Shader学习(三)试着绘制一个圆

Introduction to reverse debugging PE structure resource table 07/07

205. 同构字符串

2022危险化学品经营单位主要负责人练习题及模拟考试

Hardware Basics - diode Basics

面试官:Redis中哈希数据类型的内部实现方式是什么?
随机推荐
392. Judgement subsequence
.Net之延迟队列
2022年起重机械指挥考试模拟100题模拟考试平台操作
Golang 使用 JSON unmarshal 数字到 interface{} 数字变成 float64 类型(转)
Service Mesh的基本模式
美国土安全部部长警告移民“不要踏上危险的旅程”
安装trinity、解决报错
Use the default route as the route to the Internet
Animation and transition effects
免费、好用、强大的轻量级笔记软件评测:Drafts、Apple 备忘录、Flomo、Keep、FlowUs、Agenda、SideNote、Workflowy
德明利深交所上市:市值31亿 为李虎与田华夫妻档
华昊中天冲刺科创板:年亏2.8亿拟募资15亿 贝达药业是股东
Variable promotion and function promotion in JS
30:第三章:开发通行证服务:13:开发【更改/完善用户信息,接口】;(使用***BO类承接参数,并使用了参数校验)
xshell/bash/zsh 等终端鼠标滚轮乱码问题(转)
FS7867S是一款应用于数字系统供电电源电压监控的电压检测芯片
C语言图书租赁管理系统
Programmer anxiety
FS4059C是5V输入升压充电12.6V1.2A给三节锂电池充电芯片 输入小电流不会拉死,温度60°建议1000-1100MA
基于链表管理的单片机轮询程序框架