当前位置:网站首页>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
边栏推荐
- 苹果5G芯片研发失败:继续依赖高通,还要担心被起诉?
- unity不识别rider的其中一种解决方法
- Worried about "cutting off gas", Germany is revising the energy security law
- Automatic filling of database public fields
- Redis - how to install redis and configuration (how to quickly install redis on ubuntu18.04 and centos7.6 Linux systems)
- 嵌入式编程中五个必探的“潜在错误”
- Whether the loyalty agreement has legal effect
- gorm 之数据插入(转)
- 英视睿达冲刺科创板:年营收4.5亿 拟募资9.79亿
- 2022kdd pre lecture | 11 first-class scholars take you to unlock excellent papers in advance
猜你喜欢
Hardware Basics - diode Basics
.Net之延迟队列
面试官:Redis中哈希数据类型的内部实现方式是什么?
CVPR 2022 | 大幅减少零样本学习所需的人工标注,提出富含视觉信息的类别语义嵌入(源代码下载)...
Node の MongoDB安装
国内酒店交易DDD应用与实践——代码篇
Redis - how to install redis and configuration (how to quickly install redis on ubuntu18.04 and centos7.6 Linux systems)
SCM polling program framework based on linked list management
2022年起重机械指挥考试模拟100题模拟考试平台操作
锐成芯微冲刺科创板:年营收3.67亿拟募资13亿 大唐电信是股东
随机推荐
Ruichengxin micro sprint technology innovation board: annual revenue of 367million, proposed to raise 1.3 billion, Datang Telecom is a shareholder
Service Mesh的基本模式
面试拆解:系统上线后Cpu使用率飙升如何排查?
DGraph: 大规模动态图数据集
Five "potential errors" in embedded programming
基于STM32+华为云IOT设计的酒驾监控系统
【Antd】Antd 如何在 Form.Item 中有 Input.Gourp 时获取 Input.Gourp 的每一个 Input 的value
OPPO Find N2产品形态首曝:补齐各项短板
Distributed base theory
golang fmt.printf()(转)
小程序直播 + 电商,想做新零售电商就用它吧!
find命令报错: paths must precede expression(转)
Read excel table data
Introduction to reverse debugging PE structure resource table 07/07
[C question set] of VII
C language staff management system
基于链表管理的单片机轮询程序框架
Unittest框架中引入TestFixture
mac redis安装与使用,连接远程服务器 redis
unity不识别rider的其中一种解决方法