Mysql5.7.21.zipinstallation tutorial, mysql5.7.21.zip

Source: Internet
Author: User

Mysql5.7.21.zipinstallation tutorial, mysql5.7.21.zip

The detailed installation process of mysql5.7.21 zip is as follows:

1. decompress the package to the specified drive D: \ mysql-5.7.21-winx64

2. Create a New my. ini file in the D: \ mysql-5.7.21-winx64 folder and put the following code in the my. ini file

Modify the basedir and datadir according to your actual installation directory.

[Mysql] # set the default character set of the mysql client default-character-set = utf8 [mysqld] # set port 3306 to port 3306 # set the mysql installation directory basedir = D: \ mysql-5.7.21-winx64 # Set the mysql database data storage directory datadir = D: \ mysql-5.7.21-winx64 \ data # maximum number of connections allowed max_connections = 200 # the character set used by the server defaults to the 8-bit latin1 character set character-set-server = utf8 # enable query cache explicit_defaults_for_timestamp = trueskip-grant -tables # default storage engine default-storage-engine = INNODB used when creating a new table

3. Configure Environment Variables

MYSQL_HOME: D: \ mysql-5.7.21-winx64

Add % MYSQL_HOME % \ bin after the system environment path, not a win10 partner, pay attention to the plus points (";")

4.open cmd.exe and run it as an administrator.

mysqld --initialize --user=mysql --console

5. Install the service

mysqld --install MySQL5.7.21 

6.

Start the service

net start MySQL5.7.21

Stop Service

net stop MySQL5.7.21

7. After logging in with the initial password, execute the following command to change the password

Set password for root @ localhost = password ('your password ');

If the password fails to be modified, run flush privileges first.

The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.