Graphic explanation of Mysql5.7.11 Green Edition installation tutorial, mysql5.7.11 graphic

Source: Internet
Author: User

Graphic explanation of Mysql5.7.11 Green Edition installation tutorial, mysql5.7.11 graphic

The installation tutorial of Mysql5.7.11 Green Edition is illustrated as follows:

1. decompress the mysql-5.7.11 package to the disk folder you want to store;

2. Create a new data folder and a new my. ini file in the folder, and configure the my. ini file.

My. ini file content: the key point is to configure the data DIRECTORY and storage root directory in the Mysql folder.

3. on my computer, choose Properties> advanced system Settings> environment variables> Configure path variables;

Variable value:

4. Open the cmd.exe program with the administrator ID

NOTE: If cmd.exe is not opened using the administrator ID, it will appear during mysql installation.

---------- Install/Removeof the Service Denied! ---------------------------------------------------------------

5. initialize the new data folder;

Command 1:>mysqld--initialize-insecure; (No root password after initialization. We recommend that you use it)

Command 2:>mysqld–initialize; (A random root password is generated after initialization)

Select either of the preceding commands:

Data folder after successful execution

6. Install the mysql Service

Command:>mysqld-install

Installed successfully!

-------------------------- Servicesuccessfully installed .----------------------------

7. Start mysql

Command:>net start mysql

8. log on to mysql

Command:>mysql -u root -p(If you do not have a password for the first login, press enter to log in)

Login successful !!

9. Set the User Password

Command:>setpassword for root@localhost = password(‘new password');

Password set !!!

Key commands:

Command 1:>mysqld--initialize-insecure; (No root password after initialization. We recommend that you use it)

Command 2:>mysqld–initialize; (A random root password is generated after initialization)

Command:>mysqld-install

Command:>net startmysql

Command:>mysql -uroot -p

Command:>setpassword for root@localhost = password(‘new password');

10. Access the mysql service through the user and password

Login successful !!!!!

11. Stop and quit the service.

Command:>quit;>exit; >\q;

Simple Test Operation:

1. show databases; // list of all databases

2. create database dbName; // create a database

3. use dbName; // select a database

4. show tables; // display the table list

The above is a graphic explanation of the Mysql5.7.11 green installation tutorial. I hope it will help you. If you have any questions, please leave a message and I will reply to you in time. Thank you very much for your support for the help House website!

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.