当前位置:网站首页>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/
边栏推荐
- Noise monitoring and sensing system
- Unity - default rendering pipeline - sculpt shader
- Cv520 domestic replacement of ci521 13.56MHz contactless reader chip
- torch.Tensor和torch.tensor的区别
- DAC0832 waveform generator based on 51 single chip microcomputer
- [noi simulation] computational geometry (convex hull, violence, and search set)
- Redshift 2.6.41 for maya2018 watermark removal
- Phy6252 is an ultra-low power Bluetooth wireless communication chip for the Internet of things
- CentOS deploy PostgreSQL 13
- Some simple uses of crawler requests Library
猜你喜欢

What constitutes the smart charging pile system?
![[beauty of software engineering - column notes] 25 | what methods can improve development efficiency?](/img/c8/c2d45abbf36b898040f9f1cf6274ff.png)
[beauty of software engineering - column notes] 25 | what methods can improve development efficiency?
![[beauty of software engineering - column notes]](/img/b9/43db3fdfe1d9f08035668a66da37e2.png)
[beauty of software engineering - column notes] "one question and one answer" issue 3 | 18 common software development problem-solving strategies
![[beauty of software engineering - column notes] 26 | continuous delivery: how to release new versions to the production environment at any time?](/img/65/79f876b62fa3db421e5038a2445b83.png)
[beauty of software engineering - column notes] 26 | continuous delivery: how to release new versions to the production environment at any time?

MySQL rownum implementation

简易计算器微信小程序项目源码

STM32 detection signal frequency

Noise monitoring and sensing system

Smart energy management system solution

DC motor control system based on DAC0832
随机推荐
How to connect VMware virtual machine to external network under physical machine win10 system
Privacy is more secure in the era of digital RMB
Stm8s003 domestic substitute for dp32g003 32-bit microcontroller chip
Eps32+platform+arduino running lantern
Exercise: store department information
sql判断语句的编写
[robomaster] a board receives jy-me01 angle sensor data -- Modbus Protocol & CRC software verification
torch.nn.functional.one_ hot()
简易计算器微信小程序项目源码
Unity shader learning (VI) achieving radar scanning effect
DAC0832 waveform generator based on 51 single chip microcomputer
Charging pile charging technology new energy charging pile development
An optimal buffer management scheme with dynamic thresholds paper summary
[noi simulation] computational geometry (convex hull, violence, and search set)
MySQL中的时间函数
Product promotion channels and strategies, cosmetics brand promotion methods and steps
V-Ray 5 acescg workflow settings
Dp1332e multi protocol highly integrated contactless read-write chip
Dynamic Thresholds Buffer Management in a Shared Buffer Packet Switch论文总结
Alibaba political commissar system - Chapter 1: political commissars are built on companies