当前位置:网站首页>MySql5. 7.26 installation
MySql5. 7.26 installation
2022-04-22 10:33:00 【m0_ fifty-four million eight hundred and fifty-three thousand f】
1. download : Address https://dev.mysql.com/downloads/mysql/5.7.html#downloads
Choose the version

Choose... According to your own needs 32 Bit or 64 Bit version ( Choose here 64 position ) Click to download

Enter the download page and operate according to the following figure

2. Where to place the unzipped file : Here, unzip the downloaded file to D:Software Next

Internal file structure after decompression :( There's no data The folder and my.ini file )

3. newly build my.ini Put the files directly into the directory :D:Softwaremysql-5.7.26-winx64
my.ini The contents of the document :
[mysqld]
# Set up 3306 port
port=3306
# Set up mysql Installation directory
basedir=D:Softwaremysql-5.7.26-winx64
# Set up mysql Database data storage directory
datadir=D:Softwaremysql-5.7.26-winx64Data
# Maximum connections allowed
max_connections=200
# Number of connection failures allowed . This is to prevent someone from trying to attack the database system from the host
max_connect_errors=10
# The character set used by the server defaults to UTF8
character-set-server=utf8
# The default storage engine that will be used when creating a new table
default-storage-engine=INNODB
# By default “mysql_native_password” Plug in authentication
default_authentication_plugin=mysql_native_password
[mysql]
# Set up mysql Client default character set
default-character-set=utf8
[client]
# Set up mysql The default port when the client connects to the server
port=3306
default-character-set=utf8
What needs to be noted here is my.ini Creating a new file is best text file , Put the code above text In the document , And modify the new text The document and its suffix are my.ini
Otherwise, it may be executed at that time mysqld --initialize The following error prevented the installation mysql

4. Computer environment configuration
New environment variable
Variable name :MYSQL_HOME
A variable's value :D:Softwaremysql-5.7.26-winx64 (MySql The directory where the file is decompressed )

To configure Path:
Here is win10 System , stay path Add in %MYSQL_HOME%in

5. Run as administrator and open cmd Command window

Switch to the corresponding D:Softwaremysql-5.7.26-winx64in Under the table of contents

6.MySql install
Get into bin Catalog , Carry out orders
mysqld --initialize ( This will generate data Catalog )


perform mysqld -install mysql57( install : Be careful mysql57 Is the alias of the installation service , There's no need to write , The default installation service name is mysql)

function net start mysql57 start-up mysql57 service

Service started successfully
7. Change Password ( If you forget the database password later, you can also reset it in this way )
stay my.ini file (MySQL Configuration file for ) Of [mysqld] Add a line below skip-grant-tables // Skip permission verification and log in to the database directly without user name and password ,( Be careful : I'm revising it my.ini There are some problems with the file , It is suggested that my.ini File copy to text In file , And then text Change the file to my.ini)
Restart the service after modifying the configuration file : Carry out orders mysql -uroot -p The following password is arbitrary and directly enters the database
Then set the account and password :update mysql.user set authentication_string=password(“root”) where user=“root”

After modification , sign out quit
Out of Service :net stop mysql57
Delete my.ini The code in skip-grant-tables
Restart the service net start mysql57
mysql -uroot -proot Login database

版权声明
本文为[m0_ fifty-four million eight hundred and fifty-three thousand f]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204221022219388.html
边栏推荐
- vmware虚拟机下载并安装教程
- 安全远程访问+安全文件传输+终端仿真+远程管理丨上海道宁联合VanDyke为IT行业人员带来可靠的、易于配置的软件
- 2022-04-19_函数(二)
- 多语言通信基础 05 go的grpc体验
- Some functions of qbytearray are used for conversion
- Here comes the article ~ share compressed and decompressed files [online website]
- 谷歌AdSense提示广告抓取工具错误,这可能导致收入减少怎么办
- ffmpeg filtergraph同时添加缩放和osd滤镜
- 《消息队列高手课》目录
- 【leetcode】94. Middle order traversal of binary tree
猜你喜欢
随机推荐
TC397 MCMCAN
Google Adsense suggests that the advertising capture tool is wrong, which may lead to reduced revenue. What should we do
001 MySQL command
Spark 3.x 的 WSCG 机制源码解析
MySQL基础合集
ACID在MySQL里的底层怎么实现?
C语言实例100(四)
matlab的解决反复激活问题的license.lic文件
MySQL数据库常识之储存引擎
cesium地图右击菜单(cesium篇.72)
LLVM之父Chris Lattner:编译器的黄金时代
安全远程访问+安全文件传输+终端仿真+远程管理丨上海道宁联合VanDyke为IT行业人员带来可靠的、易于配置的软件
Dynamic visualization of data based on pyqt5
Golang time formatting
[HLS] variable frame rate and fixed frame rate streaming
003-MySQL索引
斜率优化DP
【leetcode】二叉树遍历迭代法的统一模板
[leetcode] the first mock exam of two tree traversal iteration method.
Here comes the article ~ share compressed and decompressed files [online website]









