Mysql5.7.1 zip installation record, mysql5.7.1zip

Source: Internet
Author: User

Mysql5.7.1 zip installation record, mysql5.7.1zip

 

I haven't met a project using mysql for a long time. I downloaded a project today and found it changed a lot. After searching, I found that the basic information mentioned in http://www.cnblogs.com/wenthink/p/mysqlinstall.htmlcan be used:

1. After registering the windows service, do not start the mysql service directly. Otherwise, it cannot be started. Because the zip version does not contain the data folder now, it needs to be initialized. Use

Use one of the following for initialization. You can also add -- defaults-file = C: \ yourpath \ my. ini parameter C: \> bin \ mysqld -- initializeC: \> bin \ mysqld -- initialize-insecure difference: -- initialize generates a random root Password (which can be seen in a log file under data) -- initialize-insecure uses an empty password.

2. After initialization, you can start the service. After the initialization, you need to connect to the database and change the password.

Mysqld -- initialize is initialized using mysql-u root-p for connection. The password is the random password mysqld -- initialize-insecure initialized in the log, use mysql-u root -- skip-password for successful connection and then use alter user 'root' @ 'localhost' identified by 'new _ password'; change the password

The password change method mentioned in the Link has changed.

Mysql initialization and usage can refer to the http://dev.mysql.com/doc/refman/5.7/en/data-directory-initialization-mysqld.html

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.