Mysql-5.7.18-winx64 compressed version installation configuration

Source: Internet
Author: User

Mysql-5.7.18-winx64 installation Configuration


First, configure the MY.CNF

1, decompression mysql-5.7.18-winx64.zip to the e-packing directory

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/96/34/wKiom1keSgDTObmKAAEenPQkF_4760.png-wh_500x0-wm_ 3-wmp_4-s_2639712183.png "title=" As.png "alt=" Wkiom1kesgdtobmkaaeenpqkf_4760.png-wh_50 "/>

2. Write My.cnf file

Create the my-small.cnf file and put it under the MySQL root directory.

[Client]

Default-character-set=utf8


[MySQL]

Default-character-set=utf8


[Mysqld]

port=3306

Basedir=e:/mysql-5.7.18-winx64

Datadir=e:/mysql-5.7.18-winx64/data

Character_set_server=utf8


init_connect= ' SET NAMES UTF8 '

Collation-server=utf8_general_ci

Skip-character-set-client-handshake

Sql_mode=no_engine_substitution,strict_trans_tables


Second, the initial installation of MYSQL5 services

1. Delete Service: SC delete mysql57

2. Stop service: net stop MYSQL5

3, installation command: mysqld--install mysql57--defaults-file= "E:\mysql-5. 7.18-winx64\my-small.cnf "

4. Initialization: Mysqld--initialize-insecure


Third, start and change the password

1. Start MySQL service: net start mysql57

2, Login: mysql-uroot-p

3, change the password:

Use MySQL;

Update user set Authentication_string=password (' Leizm '), host= '% ' where user= ' root ';

Flush privileges;

Quit


4, re-login: Mysql–uroot–pleizm


Iv. installation and configuration of MySQL client tools

Windows under Client tools: SQLyog Enterprise 11.52

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/96/34/wKioL1keSizyZOztAAE9yWTpN6Q415.png-wh_500x0-wm_ 3-wmp_4-s_1854042524.png "title=" As.png "alt=" Wkiol1kesizyzoztaae9ywtpn6q415.png-wh_50 "/>

V. Common operation of MySQL client tools


Vi. SQL Practice


This article is from the lava blog, so be sure to keep this source http://lavasoft.blog.51cto.com/62575/1927387

Mysql-5.7.18-winx64 compressed version installation configuration

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.