mysql decompressed version installation

Today I will talk about mysql decompression version install
mysql download https://www.mysql.com/downloads/
After the download is complete, decompress it and get it
write picture description here
Create a data and my.ini file If it already exists, delete it.
Data generation
path.ini file is the configuration file

.ini file content
—————————————————————–.ini file content ————————————————————— —–
** # For advice on how to change settings please see

http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html

* DO NOT EDIT THIS FILE. It’s a template which will be copied to the

* default location during install, and will be replaced if you

* upgrade to a newer version of MySQL.

[client]
port=3306
[mysql]
default-character-set=utf8
[mysqld]
basedir = F:\mysql-5.7.18-winx64 //Your compressed package decompression path
datadir = F:\mysql-5.7.18- winx64\data // your makefile path
port = 3306
character-set-server=utf8
max_connections=100
default-storage-engine=INNODB
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES****
———————————— —————————–.ini file content —————————————————————–
Modify the path and copy it directly into your .ini file Well, the
first step write picture description here
is to configure your environment variables. I won't say much about the decompression path. Just put it in the
cmd shortcut key to find cmd.exe, right-click to select it , and run dos as administratorwrite picture description here

Use the command to enter the bin directory of your mysql, such as my directory F:\ServiceFile\mysql\mysql-5.7.21-winx64\bin. The effect is as shown in Figure
1 above. Execute the command: mysqld –initialize-insecure, initialize mysql
2 and then later Execute the command, mysqld
3 If the above two commands are successful, then open cmd as an administrator, enter the bin directory of mysql, and execute the command mysql -uroot
4 This will also enter the mysql environment, then modify the user password and execute Command: ALTER USER 'root'@'localhost' IDENTIFIED BY 'your password';
5 Execute the quit command, then execute mysqladmin -uroot -p shutdown to shut down the mysql process
6 If it fails, exit and log in to mysql -u your name -p you password; then perform step 5
7 mysqld –install (install MySQL service), if nothing else, your mysql environment is installed. After
success , the shortcut key win+r
write picture description here
and then find your mysql and start it.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325530771&siteId=291194637