当前位置:网站首页>Detailed steps of installing MySQL 5.7 for windows
Detailed steps of installing MySQL 5.7 for windows
2022-07-29 08:15:00 【Bejpse】
List of articles
This paper mainly introduces Windows Installation in system MySQL 5.7 Step by step , And environment variable configuration and file configuration .
download
MySQL :: Download MySQL Community Server (Archived Versions)
https://downloads.mysql.com/archives/community/
choice 5.7.* edition , And then choose zip File for download
decompression
Unzip the downloaded files to the directory where you installed the software , I am here C:Softwaremysql-5.7.28
Set the environment variable
In turn, click This computer — attribute — Advanced system setup — environment variable , Then create a new system variable 
MYSQL_HOME
C:Softwaremysql-5.7.28
stay “Path” Add... To the variable %MYSQL_HOME%in
Create a data directory
stay C:Softwaremysql-5.7.28 Create... Respectively in the directory data and uploads Folder , Separate storage MySQL Data import and export files .
create profile
stay C:Softwaremysql-5.7.28 Create... In the directory my.ini file , When it comes to the follow-up of directory files, make modifications according to your own situation .
[mysqld]
port=3306
character_set_server=utf8
basedir=C:Softwaremysql-5.7.28
datadir=C:Softwaremysql-5.7.28data
server-id=1
sql_mode=NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
lower_case_table_names=1
innodb_file_per_table = 1
log_timestamps=SYSTEM
log-error = error.log
slow_query_log = 1
slow_query_log_file = slow.log
long_query_time = 5
log-bin = binlog
binlog_format = row
expire_logs_days = 15
log_bin_trust_function_creators = 1
secure-file-priv=C:Softwaremysql-5.7.28uploads
[client]
default-character-set=utf8
The overall directory structure is 
Initialize database
Run as Administrator CMD
Switch to MySQL Of HOME Catalog , And then execute mysqld --initialize-insecure
cd c:Softwaremysql-5.7.28
mysqld --initialize-insecure
Install and start
Switch to bin Directory , perform mysqld –install MySQL57 install , And then execute net start MySQL57 start-up MySQL
cd bin
mysqld –install MySQL57
net start MySQL57
Set login password
First use mysql -uroot Sign in MySQL
Set the local login password to “Root-123” And remote login password “Root-123456”
mysql -uroot
SET PASSWORD FOR 'root'@'localhost'= "Root-123";
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'Root-123456' WITH GRANT OPTION;
FLUSH PRIVILEGES;
Reference material
Windows install MySQL5.7 course - Simple books
https://www.jianshu.com/p/a41d45890ab2
notes : This article was first published on personal blog website : http://www.erik-ly.com/
边栏推荐
- Stm32ff030 replaces domestic MCU dp32g030
- 110道 MySQL面试题及答案 (持续更新)
- Redshift 2.6.41 for maya2018 watermark removal
- 简易计算器微信小程序项目源码
- 2.4G band wireless transceiver chip si24r1 summary answer
- BiSeNet v2
- Unity beginner 2 - tile making and world interaction (2D)
- Very practical shell and shellcheck
- Background management system platform of new energy charging pile
- Processes and threads
猜你喜欢

10 common software architecture modes

Intelligent shelf safety monitoring system

UE4 highlight official reference value

华为无线设备配置利用WDS技术部署WLAN业务
![[beauty of software engineering - column notes]](/img/90/658f4d954c876bed2fccb431232e52.png)
[beauty of software engineering - column notes] "one question and one answer" issue 2 | 30 common software development problem-solving strategies

数仓分层设计及数据同步问题,,220728,,,,

Cs4344 domestic substitute for dp4344 192K dual channel 24 bit DA converter

阿里巴巴政委体系-第一章、政委建在连队上

Convert source package to RPM package

阿里巴巴政委体系-第四章、政委建在连队上
随机推荐
Unity多人联机框架Mirro学习记录(一)
torch.Tensor.to的用法
Inclination sensor is used for long-term monitoring of communication tower and high-voltage tower
[密码学实验] 0x00 安装NTL库
Some tools, plug-ins and software links are shared with you~
Noise monitoring and sensing system
torch.nn.functional.one_hot()
BiSeNet v2
[robomaster] a board receives jy-me01 angle sensor data -- Modbus Protocol & CRC software verification
Implementation of simple cubecap+fresnel shader in unity
Mqtt server setup and mqtt.fx testing
阿里巴巴政委体系-第一章、政委建在连队上
2.4G band wireless transceiver chip si24r1 summary answer
Dp1332e multi protocol highly integrated contactless read-write chip
Redshift 2.6.41 for maya2018 watermark removal
The software package is set to - > Yum source
Simplefoc+platformio stepping on the path of the pit
Unicode私人使用区域(Private Use Areas)
Alibaba political commissar system - Chapter III, Alibaba political commissar and cultural docking
Intelligent shelf safety monitoring system