Installation-free configuration tutorial for mysql 5.7 and installation-free configuration tutorial for mysql

Source: Internet
Author: User

Installation-free configuration tutorial for mysql 5.7 and installation-free configuration tutorial for mysql

It took me two days to figure it out. I hope it will be helpful to new users. If you have any questions, please contact us!

Mysql is divided into the installation version msi, free installation to compress version ZIP, download URL: http://dev.mysql.com/downloads


The installation-free configuration includes the following steps:
1. The first step to Extract files, casually put in a folder, such as: D: \ mysql-5.7.15-winx64

2. Configure the environment variable and append D: \ mysql-5.7.15-winx64 \ bin after the system variable path

3. Copy the my-default.ini, name it my. ini, open my. ini, and add
Basedir = D: \ mysql-5.7.15-winx64
Datadir = D: \ mysql-5.7.15-winx64 \ data
Bind-address = 0.0.0.0
Port = 3306 (note that the previous # is removed when this content is fixed)

4. Run cmd as administrator and enter D: \ mysql-5.7.15-winx64 \ bin (enter D: Press ENTER *** enter cd D: \ mysql-5.7.15-winx64 \ bin press Enter)

5. This step is very important to create a data folder, some previous versions have data folders, but not now, enter after D: \ mysql-5.7.15-winx64 \ bin in cmd
Mysqld -- initialize-insecure -- user = mysql
In this way, the data folder is created,

6. Run mysqld-install to install the Service. If the installation is successful, the following message is displayed: Service successfully installed.

7. start the service and execute net start mysql

*******************/
8. Also enter the D: \ mysql-5.7.15-winx64 \ bin file in cmd, execute mysql-u root-p
Enter password:
Press enter to log on as root.

9. Change the password, enter D: \ mysql-5.7.15-winx64 \ bin, execute mysqladmin-uroot-p password command, prompt to enter the original password,
The original password is blank. Press enter, enter the new password, and then confirm the password to log on.

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.