Mysql5.7.13.zip installation Tutorial (Windows) _mysql

Source: Internet
Author: User
Tags reserved system log uuid

This is my previous MySQL installation version of the download and configuration of the detailed process, first to share with you.

1. Download MySQL
Official: http://www.mysql.com→downloads→ Select Community version mysql Community Edition (GPL) → Click Community (GPL) downloads>>→mysql Community Server (GPL) → Select the version you want to download (I am a 64-bit system selected is Windows (x86, 64-bit), ZIP Archive) →downloads→no, just start my Download.
2. Configure Environment Variables
First download the good file to the location you want to install, I unzipped to the D:\servers\mysql
Programme 1:New environment variable, variable name: MYSQL (General uppercase, also lowercase), variable value: D:\servers\mysql, adding%mysql%/bin to Path
Programme 2:Add D:\servers\mysql\bin directly to Path
3. Install MySQL Service
Command line goes to MySQL bin directory
Note:Enter "D:" directly into D and use "CD folder name" to enter a folder, "CD ..." Back to previous directory)
Enter service install or mysqld install prompts installation success
Enter net start MySQL to start MySQL service
Use Mysql–u root–p (this command is root login, for short, detailed format to find themselves), the root default password is empty, direct return can
4.mysql.ini
The original file is Mysql-defult.ini
Modify one of theBasedir=d:/servers/mysql
Datadir=d:/servers/mysql/data
Note:The path is "/", if copied directly, no change will appear "system error 1067"
System error 5 Open a command prompt with administrator privileges
5. Connect MySQL
At the command prompt, enter: mysql-uroot-p
Root default password is empty, enter directly

I have a problem with installing the 5.6 installation method (MySQL-free version download and configuration) before installing 5.7:
The MySQL service failed to start and the service did not report any errors

In fact, in this semester began to learn MySQL, listen to the teacher classmate said, log on the problem, did not care, but also because the computer has already installed mysql5.6, also did not care about this problem. These two days win10 system problem, reload Win7, install 5.7 When this problem occurs.

The previous version of the default password is empty, the specific version is not clear, anyway 5.6 password is empty. 5.7 Security promotion, in the Linux installation 5.7, the installation will generate a random password, stored in the Root/.mysql_secret, if there is no this file, to the system log to find password, you should be able to find.

But Windows did not know how to solve it, but finally found a solution.

Workaround:
From:Windows MYSQL 5.7.9, cannot start. Missing Data
However, instead of missing the Data folder, rename the My-default.ini file to My.ini, move it to the bin/directory, execute commands under bin/mysqld--initialize--user=mysql--console, This command is estimated to be an initialized command
Then start service net start MySQL
Command line display posted on this

Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\windows\system32>cd..

C:\windows>cd..

The C:\>CD mysql-5.7.13-winx64/boot system could not find the specified path.

C:\>CD mysql-5.7.13-winx64\bin c:\mysql-5.7.13-winx64\bin>mysqld Install Service successfully installed.
c:\mysql-5.7.13-winx64\bin>net start MySQL MySQL service is starting.

The MySQL service failed to start.

The service did not report any errors.


Please type NET helpmsg 3534 for more help.
c:\mysql-5.7.13-winx64\bin>net start MySQL MySQL service is starting.

The MySQL service failed to start.

The service did not report any errors.


Please type NET helpmsg 3534 for more help. C:\mysql-5.7.13-winx64\bin>mysqld--initialize--user=mysql--console 2016-06-21t14:07:20.922112z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated.
Please use--explicit_defaults_for_timestamp server option (you'll have a doc umentation for more details). 2016-06-21t14:07:22.669315z 0 [Warning] innodb:new log files created, lsn=45790 2016-06-21t14:07:23.106116z 0 [Warning]
Innodb:creating FOREIGN KEY constraint system tables. 2016-06-21t14:07:23.308916z 0 [Warning] No existing UUID has been found, so we a ssume the This is THe-this server has been started.
Generating a new uuid:79c8386d-37b9-11e6-9709-74867a6179b7. 2016-06-21t14:07:23.340116z 0 [Warning] gtid the table isn't ready to be used.
Tabl e ' mysql.gtid_executed ' cannot be opened. 2016-06-21t14:07:23.355716z 1 [note] A temporary password are generated for root@ LOCALHOST:RR9.8H74TWFR 
WINX64\BIN>MYSQL-UROOT-PRR9.8H74TWFR MySQL: [Warning] Using a password on the command line interface can insecure. ERROR 2003 (HY000): Can ' t connect to MySQL server on ' localhost ' (10061) c:\mysql-5.7.13-winx64\bin>net start MySQL M
The Ysql service is starting.


The MySQL service has started successfully. C:\MYSQL-5.7.13-WINX64\BIN>MYSQL-UROOT-PRR9.8H74TWFR MySQL: [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.13 Copyright (c), 2016, Oracle and/or its affiliates.

All rights reserved. Oracle is a registered trademark of ORACLe Corporation and/or its affiliates.

The other names may is trademarks of their respective owners. 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> exit Bye C:\mysql-5.7.13-winx64\bin>mysql-uroot 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), 2016, Oracle and/or its affiliates.

All rights reserved. Oracle is a registered trademark to Oracle Corporation and/or its affiliates.

The other names may is trademarks of their respective owners. Type ' help, ' or ' \h ' for help.

Type ' \c ' to clear the current input statement.
 Mysql> Exit Bye c:\mysql-5.7.13-winx64\bin>

The above is the Mysql5.7.13.zip installation configuration method, as well as the installation process encountered in the problem-solving method, I hope to help you learn.

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.