MySQL 5.7.18 Compressed Package Edition configuration record

Source: Internet
Author: User

1, extract to a directory (recommended root directory), such as: D:\mysql
2. Add D:\mysql\bin in the system path
3, this version without My-default.ini, need to write, put in D:\mysql\my.ini, relevant parameters can refer to mysqld--verbose--help

[client] Port=3306default-character-set=UTF8[mysqld]Port =3306character_set_server=Utf8basedir=D:\mysqldatadir=D:\mysql\datasql_ Mode=no_engine_substitution,no_auto_create_user

4, installation as a service: Mysqld.exe-install

5, initialize the system database: Mysqld--initialize-insecure, automatically create the data directory after initialization and the root user of the empty password (not recommended--initialize, generate random password, this version is not shown in data\*. Can be found in the Err file)
6. Start MySQL service: net start MySQL
7, initialize the root password: mysqladmin-u root-p password new password, empty password directly enter

MySQL 5.7.18 Compressed Package Edition configuration record

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.