当前位置:网站首页>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


边栏推荐
- 金仓数据库KingbaseES UDP监控工具的使用
- Waiting event enq: Ko - some feasible processing methods for fast object checkpoint
- BCGControlBar库专业版,完整记录的MFC扩展类
- rpc的正确打开方式|读懂Go原生net/rpc包
- Mysql-- index
- Cadence OrCAD capture design method to avoid misoperation graphic tutorial
- ZigBee模块通信协议的树形拓扑组网结构
- Picture rule page turning
- 【MYSQL】存储过程的使用
- puppeteer入门之 Puppeteer 类
猜你喜欢
![[machine learning theory] true positive, true negative, false positive, false negative concept](/img/59/8264d6cbd96480b59e5b8ff96320be.png)
[machine learning theory] true positive, true negative, false positive, false negative concept

Wuenda machine learning course - week 7

有哪些ABAP关键字和语法,到了ABAP云环境上就没办法用了?

安全相关网站推荐

MySQL transaction

Detail measurement of DC-DC and PDN with network analyzer

金仓数据库KingbaseES中的PL/SQL 编译检查

Empire CMS imitation "game bird" template source code /92kaifa version large mobile game portal template

DataGrip 2022,DataGrip 功能

Pyramidtnt: TNT with characteristic pyramid structure
随机推荐
金仓数据库KingbaseES中的PL/SQL 编译检查
After four years of outsourcing, it was abandoned
选择DC-DC开关电源控制器的实战过程
Datagrip 2022, datagrip function
Dynamically render data and carousels
Empire CMS imitates DIY handmade website source code of craft activity /92kaifa imitates self-adaptive mobile phone version template of craft activity
Kingbasees create database objects in batch
Wsarecv: an existing connection was forcefully closed by the remote host
DataGrip 2022,DataGrip 功能
Série de démarrage C # (XI) - - tableaux multidimensionnels
MySQL transaction
Record yesterday's embarrassment
[torch]: parallel training and can dynamically set the batch size of the first GPU
Detailed explanation of Lora module wireless transceiver communication technology
LoRa模块无线收发通信技术详解
Excellent test engineer must have 4 safety test methods!
Preview component packaging graphic tutorial in cadence OrCAD capture schematic design interface
puppeteer入门之 Puppeteer 类
NGUI,冷却效果
面试复习手写题--函数截流与抖动