MYSQL-5.7.21-WINX64 installation Process

Source: Internet
Author: User

Download good mysql-5.7.21-winx64 After decompression is no data and My.ini two files, the first new My.ini file and data empty folder

The 1,my.ini file is configured as follows:

[MySQL]
# Set the MySQL client default character set
Default-character-set=utf8
[Mysqld]
#设置3306端口
Port = 3306
# set up the MySQL installation directory
Basedir=d:\mysql-5.7.21-winx64 (Write your own decompression path)
# Set up a storage directory for MySQL database data
Datadir=d:\mysql-5.7.21-winx64\data (Write your own decompression path)
# Maximum number of connections allowed
max_connections=200
# The character set used by the service side defaults to the 8-bit encoded latin1 character set
Character-set-server=utf8
# The default storage engine that will be used when creating a new table
Default-storage-engine=innodb

2. Add bin directory to PATH environment variable

3, enter the cmd-> in the Admin province to enter the D-disk installation directory under the bin to perform the Mysqld install service

4, run mysqld--initialize-insecure--user=mysql

5, run MySQL service net start mysql shutdown mysql service command is net stop MySQL

6, login MySQL mysql-u root-p

MYSQL-5.7.21-WINX64 installation Process

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.