Mysql 5.6.23 winx64.zipinstallation tutorial, 5.6.23winx64.zip

Source: Internet
Author: User

Mysql 5.6.23 winx64.zipinstallation tutorial, 5.6.23winx64.zip

For more information about how to install MySQL on windows, see

Http://dev.mysql.com/doc/refman/5.6/en/windows-install-archive.html

1.decompress mysql-5.6.23-winx64.zip to any directory

Unzip to the root directory of drive D: \ mysql-5.6.23-winx64

2. Set the environment variables MYSQL_HOME and PATH

SET MYSQL_HOME = D: \ mysql-5.6.23-winx64

Set path = % PATH %; % MYSQL_HOME % \ bin

Please use my computer-> properties-> advanced to set system environment variables

3. Create the configuration file my. ini. The file content is as follows. Please adjust it according to your actual situation.

[mysqld]loose-default-character-set = utf8 basedir = D:/mysql-5.6.23-winx64datadir = D:/mysql-5.6.23-winx64/dataport = 13306sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES character_set_server = utf8[client]  loose-default-character-set = utf8

4. Install the windows Service. The command for registering the service is as follows:

C:\> "D:\mysql-5.6.23-winx64\bin\mysqld" --install MySQL --defaults-file=C:\my-opts.cnf

If the default configuration file my. ini under MYSQL_HOME is used, you do not need to specify it. Run the following command in cmd:

C:\Users\tanw>"D:\mysql-5.6.23-winx64\bin\mysqld" --install MySQL56Service successfully installed.

The service is successfully installed.

Later, we may use net start MySQL56 to start the service and net stop MySQL56 to stop the service.

5. The default account root has no password. You can set

mysql -u root -P 13306mysql>UPDATE mysql.user SET Password = password ( 'root' ) WHERE User = 'root' ;mysql>FLUSH  PRIVILEGES;mysql>exit

Log on with a password

mysql -u root -p -P 13306Enter Password: ****mysql>

The above is a detailed tutorial on mysql 5.6.23 winx64.zip installation. I hope it will help you. If you have any questions, please leave a message and I will reply to you in time. 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.