当前位置:网站首页>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中的sys_checksums坏块检测功能
- [machine learning theory] true positive, true negative, false positive, false negative concept
- [Objective-C] dynamically create controls
- MySQL basic learning notes 03
- 金仓数据KingbaseES 批量创建数据库对象
- Batch add noise to data and generate new named annotation files
- 【机器学习理论】True Positive, True Negative, False Positive, False Negative概念
- Ugui mouse click diffusion UI effect
- Reprint: linearlayout+fragment to achieve the lower navigation bar effect
- ZigBee模块通信协议的树形拓扑组网结构
猜你喜欢

Reprint: linearlayout+fragment to achieve the lower navigation bar effect

用真金做的电路板——金手指

Differences between beanfactory and factorybean

Global pooling – pytoch

Correct opening method of RPC | understand go native net/rpc package

pyspark案例系列4-dataframe输出到单个文件夹的解决方案

动态渲染数据和轮播图

以银行异业合作为例,浅谈小程序生态的建设

详述用网络分析仪测量DC-DC和PDN

Some code fragments of a universal and confession wall system developed by PHP
随机推荐
详述用网络分析仪测量DC-DC和PDN
数字藏品app系统源码
TikTok在英国遭遇文化冲突,短期内众多员工离职
使用bat向文件的第一行中写入内容
Windows 安装MySQL5.7 以上的版本(压缩包形式安装)
Some understanding of inductive bias
[high concurrency] the interviewer of ant financial asked me about thread pool!!
Handwritten code call, apply, bind
Internet of things security in the era of remote work
Dotween usage
金仓数据库KingbaseES中的sys_checksums坏块检测功能
Interview review - closure
以银行异业合作为例,浅谈小程序生态的建设
Dynamically render data and carousels
数据库设计及范式讲解
选择DC-DC开关电源控制器的实战过程
[Objective-C] dynamically create controls
Arbitrum infrastructure: a quick start
【Objective-C】‘NSAutoreleasePool‘ is unavailable: not available in automatic reference counting mode
面试复习手写题--函数截流与抖动