Win install MySQL

Source: Internet
Author: User
Tags change settings dedicated server administrator password

Installing SQL on Windows is the most prone to 1067 errors, many of them online, mostly misleading. Now the validated steps are summarized as follows:

1. Download MySQL, I'm using Mysql-5.6.24-win32

After downloading, unzip, go to the bin directory, modify the configuration file. Modify the following:

# for advice The Change settings see# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html# * * * Don't EDIT this FILE. It's a template which 'll be copied to the# ***defaultLocation during install, and would be replacedifyou#***upgrade to a newer version of MySQL. [mysqld]# Remove Leading # andSetTo the amount of RAM forThe most important data# cacheinchMysql. Start at -% of Total RAM forDedicated server,Else Ten%. Innodb_buffer_pool_size=128m# Remove Leading # to turn on a very important data integrity option:logging# changes to the binary log between Backups. log_bin# these is commonlySet, remove the # andSet  asrequired. Basedir= D:\Soft\Mysql\mysql-5.6. --Win32 DataDir= D:\Soft\Mysql\mysql-5.6. --win32\data# Port=.... # server_id=... # Remove leading # toSetOptions mainly useful forreporting servers.# The server defaults is faster fortransactions and fast selects.# Adjust sizes asneeded, experiment to find the optimal values. Join_buffer_size=128M sort_buffer_size=2M read_rnd_buffer_size=2M Sql_mode=no_engine_substitution,strict_trans_tables

2. Start the command line tool as an administrator and go to the bin directory

Execute command:

3. Modify the Administrator password

User root password is empty after default installation

You can use commands or a third-party tool to connect to MySQL and modify it directly in the database MySQL user table.

Win install MySQL

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.