MySQL5 install in green windows (recommended), mysql5windows

Source: Internet
Author: User

MySQL5 install in green windows (recommended), mysql5windows

1. Download MySQL

: Http://downloads.mysql.com/archives/get/file/mysql-5.7.11-winx64.zip.

2 Installation Process

2.1 decompress mysql-5.7.11-winx64.zip to a directory.

The directory I extracted is D: \ mysqlDev \

2.2 compile the MySQL running configuration file my. ini, or modify the name of the previous. ini file my. ini.

Add the following content to my. ini:

[Mysqld] # Set mysql installation directory basedir = D: \ mysqlDev \ mysql-5.7.11-winx64 \ mysql-5.7.11-winx64 # Set mysql database data storage directory, must be data, or \ xxx \ datadatadir = D: \ mysqlDev \ mysql-5.7.11-winx64 \ mysql-5.7.11-winx64 \ data # set port = 3306 # set mysql Server character set default-character-set = gbk remarks: if no character set string is displayed, you do not need to set [client] # set the character set default-character-set = gbk of the mysql client.

2.3 install the mysql Service

Enter the Directory D: \ mysqlDev \ MS-DOS \ mysql-5.7.11-winx64 \ bin from the mysql-5.7.11-winx64 window and run the following command:

mysqld --install MySQL --defaults-file=D:\mysqlDev\mysql-5.7.11-winx64\mysql-5.7.11-winx64\my.ini

Note: This may cause a problem: Install/Remove of the Service Denied!

If this error is reported, run cmd as an administrator.

2.4 start the mysql database

In the above command window, enter the command: net start MySQL

In this way, the mysql service is started.

If the command is not easy to use, click the computer on the desktop, click "manage", open the management tool, find the mysql Service, right-click to start

2.5 Delete a service

Execute mysqld -- remove MySQL.

The above is a summary of the installation of MySQL5 Green Edition windows. I hope it will help you. If you have any questions, please leave a message and I will reply to you in a timely manner. Thank you very much for your support for the help House website!

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.