Install the uncompressed version of MYSQL on Windows 10 (recommended) _mysql

Source: Internet
Author: User
Tags documentation

MySQL WIN10 decompression

Download decompression

Mysql: Version 5.7.13 download link (through this official website Zip link can be downloaded directly, no longer registered Oracle account)

Extract Mysql-5.7.13-winx64.zip to any directory, I unzipped it to the“D:/Program Files/mysql/mysql-5.7.13-winx64”

Configuring System Variables

In the system variable path, add a " D:\Program Files\mysql\mysql-5.7.13-winx64\bin "

To modify the default configuration file

Under the directory "Mysql-5.7.13-winx64" There is a profile My-default.ini, copy one for My.ini.

Modify the Basedir and DataDir in My.ini

Basedir = "D:/program files/mysql/mysql-5.7.13-winx64"
# initializes this directory after executing mysqld--initialize command datadir
= "d:/  Program Files/mysql/mysql-5.7.13-winx64/data "
# server_id must also be set, or you will be error [ERROR] You have enabled the binary log, but you Haven ' t provided the mandatory Server-id. Please refer to the proper server start-up parameters documentation
# 2016-07-18t15:29:23.097024z 0 [ERROR] aborting
   server_id = 1

Installation

In the Mysql-5.7.13-winx64\bin directory to execute mysqld--initialize--console, must be the bin directory, and must have--console, the last line can see the generated password, Can not see the password will not be able to log in.

PS D:\Program files\mysql\mysql-5.7.13-winx64\bin> mysqld--initialize--console 2016-07-18t15:56:17.820761z
0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use--explicit_defau
lts_for_timestamp server Option (the documentation for more details).
...
...
...
2016-07-18t15:56:18.449148z 1 [note] A temporary password are generated for root@localhost:: esikhcag2,d

This command initializes a lot of files in the DataDir directory of the My.ini setting. As shown in figure

Start

Then install reinstall mysql mysqld install MySQL when you need to uninstall MySQL, commandmysqld remove

Then start MySQL

PS D:\Program files\mysql\mysql-5.7.13-winx64\bin> net start MySQL
MySQL service is starting.
The MySQL service has started successfully.

Run the command bin\mysql_secure_installation.exe for security settings, such as resetting the password and whether remote access is allowed.

Running MySQL after the start mysql -u root -p of the database operation can be done, such as to take a look at the command.

# shows which databases show
databases;
# Enter database use
test;
# display table show tables
;

The above is a small set for you to introduce on the Windows 10 installation decompression version of MYSQL (recommended), I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

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.