MySQL Decompression version installation

Source: Internet
Author: User

The first step:

My Computer, properties, advanced environment variables

Select Path, after which you add: the path to your MySQL bin folder (e.g. C:\Program files\mysql\mysql Server 5.6\bin)

Path= ...; C:\Program Files\mysql\mysql Server 5.6\bin

Step Two:

Create a new My.ini file in the installation directory

==========================

[Client]

Default-character-set=utf8

[Mysqld]
Skip-grant-tables

Basedir= "E:/myfile/myjava/tools/mysql-5.7.22-winx64"

Datadir= "E:/myfile/myjava/tools/mysql-5.7.22-winx64/data"

port=3306

Character-set-server=utf8

============================

Step Three:

Create a new Data folder in the MySQL root directory and make sure data is an empty folder before installing

Input Mysqld--initialize

Then enter Mysqld--install

Success will show servers successfully installed

Under console input net start MySQL start MySQL service

Fourth Step:

Turn off MySQL. 2, run Mysqld--skip-grant-tables 3, open another command window to run MySQL can go to change the password
UPDATE user SET Authentication_string=password ("root") where user= "root";
Mysql-u root-p

MySQL Decompression version installation

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.