Install mysql5.7.13.zip (windows) and mysql5.7.13zip

Source: Internet
Author: User
Tags mysql free

Install mysql5.7.13.zip (windows) and mysql5.7.13zip

Follow the installation method I used to install MySQL 5.6 (MySQL free installation Version Download and configuration) to install MySQL 5.7:

The mysql service cannot be started and no error is reported.

As a matter of fact, when I started learning mysql this semester, I heard my teacher say that I couldn't log on, but I didn't care about it because I had installed mysql5.6 on my computer. In the past two days, the win10 system encountered a problem. After Windows 7 was reinstalled, this problem occurred during the 5.7 installation.

The default password of the previous version is null. The specific version is not clear. The password of 5.6 is empty. 5.7 security improvement. During linux 5.7 installation, a random password will be generated after installation, stored in root /. in mysql_secret, if this file is not found, you can find the password in the system log.

However, I don't know how to solve the problem in windows, but I finally found a solution.

Solution:

From: windows MySql 5.7.9, cannot start. Data missing

However, the data folder is not missing, and the my-default.ini file is renamed to my. ini, move to the bin/directory, and run the command mysqld -- initialize -- user = mysql -- console in the bin/directory. This command is probably the initialization command.

Then start the service net start mysql

The command line is shown in this

Microsoft Windows [version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C: \ Windows \ system32> cd .. C: \ Windows> cd .. C: \> the specified path cannot be found for the cd mysql-5.7.13-winx64/Boot system. C: \> cd mysql-5.7.13-winx64 \ binC: \ mysql-5.7.13-winx64 \ bin> mysqld installService successfully installed. C: \ mysql-5.7.13-winx64 \ bin> net start mysqlMySQL service is starting. MySQL service cannot start. The Service did not report any errors. Type net helpmsg 3534 for more help. C: \ mysql-5.7.13-winx64 \ bin> net start mysqlMySQL service is starting. MySQL service cannot start. The Service did not report any errors. Type net helpmsg 3534 for more help. C: \ mysql-5.7.13-winx64 \ bin> mysqld -- initialize -- user = mysql -- console2016-06-21T14: 07: %922%z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. please use -- explicit_defaults_for_timestamp server option (see documentation for more details ). 2016-06-21T14: 07: 22.669315Z 0 [Warning] InnoDB: New log files created, LSN = 457902016-06-21T14: 07: 23.20.20.z 0 [Warning] InnoDB: Creating foreig N key constraintsystem tables.2016-06-21T14: 07: 23.308916Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. generatinga new UUID: 79c8316d-37b9-11e6-9709-74867a6179b7.2016-06-21t14: 07: 23.34020.z 0 [Warning] Gtid table is not ready to be used. table 'mysql. gtid_executed 'cannot be opened.2016-06-21T14: 07: 23.355716Z 1 [Note] A te Mporary password is generated for root @ localhost: rr9.8h74twfRC: \ mysql-5.7.13-winx64 \ bin> mysql-uroot-prr9.8h74twfRmysql: [Warning] Using a password on the command line interface can be insecure. ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061) C: \ mysql-5.7.13-winx64 \ bin> net start mysqlMySQL service is starting. the MySQL service has been started successfully. C: \ mysql-5.7.13-winx64 \ bin> mysql-uroot-prr9.8h74twfRmysql: [Warning] Using a password on the command line interface can be insecure. welcome to the MySQL monitor. commands end with; or \ g. your MySQL connection id is 2 Server version: 5.7.13Copyright (c) 2000,201 6, Oracle and/or its affiliates. all rights reserved. oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. other names may be trademarks of their respectiveowners. type 'help; 'or' \ H' for help. type '\ C' to clear the current input statement. mysql> set password = password (''); Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> exitByeC: \ mysql-5.7.13-winx64 \ bin> mysql-urootWelcome to the MySQL monitor. commands end with; or \ g. your MySQL connection id is 3 Server version: 5.7.13 MySQL Community Server (GPL) Copyright (c) 2000,201 6, Oracle and/or its affiliates. all rights reserved. oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. other names may be trademarks of their respectiveowners. type 'help; 'or' \ H' for help. type '\ C' to clear the current input statement. mysql> exitByeC: \ mysql-5.7.13-winx64 \ bin>View Code

 

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.