当前位置:网站首页>Install MySQL version 5.7 or above on windows (install in compressed package)
Install MySQL version 5.7 or above on windows (install in compressed package)
2022-06-11 10:29:00 【It's hard not to write code all day】
Catalog
1 download
First, open the official website for downloading
https://dev.mysql.com/downloads/

Go in and choose 5.7 edition





2 install
Unzip after download , After decompression, it is as follows (zip It's installation free , After decompression and configuration, you can use )
Be careful : Only 5.6 Only the previous version can be installed online (install msi),5.7 After that, it was zip Compressed version
2.1 Configure environment variables
After decompression , Directly configure environment variables

2.2 Write profile
take my.ini Put in Installation directory 

The contents of the document are as follows :
[client]
port=3306
default-character-set=utf8
[mysqld]
# Set it to itself MYSQL Installation directory
basedir=D:/softinstall/mysql5.7/mysql-5.7.38-winx64
# Set to MYSQL Data directory for
datadir=D:/softinstall/mysql5.7/mysql-5.7.38-winx64/data
port=3306
character_set_server=utf8
sql_mode=NO_ENGINE_SUBSTITUTION,NO_AUTO_CREATE_USER
# Turn on query cache
explicit_defaults_for_timestamp=true
skip-grant-tables
max_allowed_packet = 400M
Be careful :basedir and datadir Use... Between folders “/” instead of “\”, Otherwise, errors may occur in the following operations . It is also said that stay my.ini The correct path in the requires double “\”.
2.3 cmd It's installed inside
Open as administrator cmd Command window , Switch directory to MySQL Of the installation directory bin Under the table of contents
Get into mysql Of bin Execute... After directory
mysqld install

initialization
After executing this command
mysqld --initialize-insecure --user=mysql
, At this time mysql Just create one for yourself data Folder . If there is such a problem , Tips Can’ t create directory .

net start mysql command ( start-up MYSQL command )
net stop mysql command ( stop it MYSQL command )

UPDATE mysql.user SET authentication_string = PASSWORD(' password ') WHERE user = 'root';
# My orders
UPDATE mysql.user SET authentication_string = PASSWORD('123456') WHERE user = 'root';
FLUSH PRIVILEGES;

The above changes the password


边栏推荐
- 1. system in Library
- Pl/sql compilation check in kingbasees
- Wuenda machine learning course - week 7
- Installing mysql5.7 for Linux
- [Objective-C] dynamically create controls
- Reprint: linearlayout+fragment to achieve the lower navigation bar effect
- [torch]: parallel training and can dynamically set the batch size of the first GPU
- Puppeter class of puppeter introduction
- RSA signature issues
- 【高并发】关于线程池,蚂蚁金服面试官问了我这些内容!!
猜你喜欢
随机推荐
General idea of interface tuning
Use of kingbasees UDP monitoring tool for gold warehouse database
【torch】: 并行训练并且可以动态设置第一个gpu的batch size
NGUI,背包拖拽,以及随机克隆图片知识点
IPhone 15 forced to use type-C interface
Datagrip 2022, datagrip function
Mysql--事务
Picture rule page turning
Explain the physical layer consistency test of 2.5g/5g/10g Base-T Ethernet interface in detail!
Wsarecv: an existing connection was forcefully closed by the remote host
Correct opening method of RPC | understand go native net/rpc package
rpc的正确打开方式|读懂Go原生net/rpc包
Empire CMS imitation "game bird" template source code /92kaifa version large mobile game portal template
puppeteer入门之 BrowserFetcher 类
用真金做的电路板——金手指
班组级安全培训,新员工入职培训教育课件,全内容PPT套用
Detail measurement of DC-DC and PDN with network analyzer
C语言校园导游咨询系统
金仓数据库KingbaseES中的sys_checksums坏块检测功能
Finite cyclic group








