MySQL 5.7 Zip version installation process

Source: Internet
Author: User
Tags mysql zip

0, download and extract the zip version of MySQL

1, add environment variable path D:\mysql-5.7\bin;

2, add the Data folder in the D:\mysql-5.7\

3, modify the My-default.ini configuration file

Basedir = D:\mysql-5.7

DataDir = D:\mysql-5.7\data

Tmpdir = D:\mysql-5.7\data

Port = 3306

server_id = 1

4, admin run Cmd.exe Enter the letter of MySQL

CD D:\mysql-5.7\bin

Mysqld-install

Mysqld--initialize

net start MySQL

Mysql-u root-p

5, refer to the last line of the D:\mysql-5.7\data\zht-PC.err file generated password and enter

such as: [note] A temporary password are generated for root@localhost: <iaht5ehlqp_

6, modify the password

Mysql> Set password for root@localhost = password (' sa ');

Related Article

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.