Mysql 5.7.18 winx64 installation-free configuration method, 5.7.18winx64

Source: Internet
Author: User

Mysql 5.7.18 winx64 installation-free configuration method, 5.7.18winx64

1. Download

2. Extract

3. Add the path environment variable and point it to the bin directory where mysql is located.

4. Create a data folder in the main directory

5. Register windows Services

Create a new my. ini file and copy it to the c: \ windows directory. The content is as follows:

[Client] port = 3306default-character-set = utf8 [mysqld] # Set to MYSQL installation directory basedir = C: \ _ 04Tools \ mysql-5.7.18-winx64 # Set to mysql data directory datadir = C: \ _ 04Tools \ mysql-5.7.18-winx64 \ dataport = 3306character_set_server = utf8sql_mode = NO_ENGINE_SUBSTITUTION, NO_AUTO_CREATE_USER # enable query cache explicit_defaults_for_timestamp = true

Open cm, go to the mysql bin directory, and enter the service installation command:

 mysqld -install

If Install/Remove of the Service Denied! appears !, Go to C: \ Window \ System32, right-click CMD. EXE, and select "Run as administrator". Then, go to the corresponding directory and execute the command. Everything is OK.

6. Start the MySQL Service

Command:

net start mysql

If an error is reported, find the. rr file in the data directory to view the specific error information. After fixing the error, remember to clear the content in the data directory.

If the above command still fails, you can try mysqld -- initilize -- user = mysql -- datadir = data

You can also use Control Panel> Administrative Tools> Services to enable the Service.

7. Modify the root password

set password for root@localhost = password('123');

After the password is changed, log on to mysql-u root-p and enter the password.

If an error occurs: mysql access denied for user 'root' @ 'localhost' (using password: YES), add

 skip-grant-tables

Log On again after restarting the service.

The above is a free installation and configuration method for mysql 5.7.18 winx64. I hope it will be helpful to 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.