MySQL Windows ZIP-free setup and startup

Source: Internet
Author: User

MySQL Windows zip free install, set up and start the process is actually quite troublesome. The following step-by-step article describes the process used:

1. Download windows (x86, 64-bit), ZIP Archive:
2. Unzip the zip file
3, copy the My-default.ini under MySQL, create My.ini under the same directory. Simple configuration:
Basedir = d:/mysql-5.6.22-winx64
DataDir = D:/mysql-5.6.22-winx64/data
Character-set-server=utf8

4. Set the environment variable path. Add D:\mysql-5.6.22-winx64\bin to path.
5. Start and display log:
Admin command line > Mysqld–console
6. Register MySQL for Windows services:
Administrator status Command line > mysqld Install

Go to Service Manager to see if the service has been registered successfully:> Services.msc

Remove MySQL service command:> mysqld remove

Note: If the Windows Service installation fails, use the "sc delete MySQL" command to remove the service and try again.

7. Start MySQL service:> net start MySQL

Note: If the first boot fails, run "Mysqladmin-uroot-p shutdown" before starting the test.

Stop mysql service command:> net stop MySQL

8, Login Mysql:mysql-u root-p

9, modify the user password:
Mysql> GRANT all on . To ' root ' @ ' localhost ' identified by ' 123456 '

10. Other Test commands:
D:\mysql-5.6.22-winx64\bin> Mysqlshow
d:\mysql-5.6.22-winx64\bin> mysqlshow-uroot-p123456 MySQL
d:\mysql-5.6.22-winx64\bin> MySQL Test

MySQL Windows ZIP-free setup and startup

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.