Mysql 5.7.11 installation and configuration tutorial, 5.7.11 installation and configuration tutorial

Source: Internet
Author: User

Mysql 5.7.11 installation and configuration tutorial, 5.7.11 installation and configuration tutorial

Step 6: Install mysql5.7.11 easily
1. Download the installation package. Mysql-5.7.11 version:
2. Copy to any disk:
For example, after decompression, copy the folder to drive C: \ Program Files \ mysql. It is recommended that the folder name be in English.
3. Configure environment variables:
Computer-> right-click-> advanced system settings-> advanced-> environment variable-> modify Path, paste the address bar "C: \ Program Files \ mysql \ bin;" to the end, note: different paths are separated by English ";", OK, and exit.
4. modify the configuration file my-default.ini under the mysql root directory:
First, create a new data folder in the mysql directory;
Second, edit the profile my-default.ini:
Remove the one before basedir and datadir #
Basedir adds the MySQL decompression path: C: \ Program Files \ mysql
Datadir adds the data folder path of MySQL: C: \ Program Files \ mysql \ data.
Add skip-grant-tables to log on without a password for the first time
Add default_password_lifetime = 0 password permanently valid
Add max_connect_errors = 99999 Max Link error count
Finally, save and close.
......
Basedir = C: \ Program Files \ mysql
Datadir = C: \ Program Files \ mysql \ data

Port = 3306

Skip-grant-tables

Default_password_lifetime = 0

Max_connect_errorrs = 99999
......

5. initialize mysql, install mysql, and start the mysql service. [This step is very important ]:

C: \ Program Files \ mysql \ bin> mysqld -- initialize-insecure -- user = mysql
C: \ Program Files \ mysql \ bin> mysqld install mysql -- defaults-file = "C: \ Program Files \ mysql \ my-default.ini"
Service successfully installed.
C: \ Program Files \ mysql \ bin> net start mysql
Mysql service is starting.
The mysql service has been started successfully.
6. Modify the root user password:
After installation, the root password is empty by default. We recommend that you modify it.
C:> mysql-u root
Mysql> show databases;
Mysql> use mysql;
Mysql> UPDATE user SET authentication_string = password ('20140901') WHERE user = 'root ';
Mysql> flush privileges;
Mysql> QUIT

The above is how to install and configure mysql 5.7.12winx64. I hope it will be helpful for your learning.

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.