Mysql 5.7.21 winx64 installation-free configuration method graphic tutorial, 5.7.21winx64

Source: Internet
Author: User

Mysql 5.7.21 winx64 installation-free configuration method graphic tutorial, 5.7.21winx64

For your reference, the configuration method of mysql 5.7.21 winx64 without installation is as follows:

1. Download

Click

2. decompress the package to the directory

3. Configuration

Create a txt file, save it as my. ini, and put it in the MySQL 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: \ Program Files \ mysql-5.7.21-winx64 # Set the mysql database data storage directory datadir = D: \ Program Files \ 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 # Will be used when creating a new table default storage engine default-storage-engine = INNODB

Note:Basedir and datadir are stored in mysql.

4. Add the bin directory to the path environment variable.

5. Install the MySQL Service

Execute mysqld install

If "xxx. dll is missing, install the Microsoft Runtime Library

Http://www.bkjia.com/softs/69599.html

6. generate the data directory (MySQL 5.7.16 will not provide the data directory by default)

First, go to the bin directory.

Run mysqld -- initialize-insecure -- user = mysql

No prompt is displayed after running.

Check whether the data directory content is correct

7. Run the MySQL Service

Net start mysql

The command to disable the MySQL service is net stop mysql.

8. log on to MySQL

mysql -u root –p

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.