Installation tutorial for MySQL unpacking package

Source: Internet
Author: User

One. Download MySQL unpacking package

There is no Data folder in the Unpacked folder.

Two. Create the file 1.Create a my.ini file under the root directory

The contents are as follows:

[Mysqld]

# Set up the MySQL installation directory

Basedir=d:\mysql-5.7.11-winx64\mysql-5.7.11-winx64

# Set the data storage directory for MySQL database, must be

Datadir=d:\mysql-5.7.11-winx64\mysql-5.7.11-winx64\data

# MySQL Port

port=3306

# Character Set

Character_set_server=utf8

Sql_mode=no_engine_substitution,strict_trans_tables

2.Execute Command

Create a new folder under the root directory name: Data

Execute the following code under DOS command (Run as Administrator)

Mysqld--initialize-insecure (not set root password, recommended)

3.Execute Command

Mysqld-install (install MySQL service)

4.Execute Command

net start MySQL (start MySQL service)services.msc

5.Login

Mysql-uroot-p no password by default

-U followed by login name

-P followed by login password

6.Set Password after login

Execute Command

Set Password=password (' root ');

Set Admin account and password same

Installation tutorial for MySQL unpacking package

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.