Detailed MySQL decompression configuration steps, mysql decompression steps

Source: Internet
Author: User

Detailed MySQL decompression configuration steps, mysql decompression steps

  1. Mysql-5.7.14-winx64 \ bin configuration to Path
  2. Copy the my-default.ini in the extract path and change the name to my. ini
  3. Add the following in my. ini:
[mysqld]basedir=C:\\software\Mysql\mysql-5.7.14-winx64datadir=C:\\software\Mysql\mysql-5.7.14-winx64\dataport=3306
  • Basedir: the decompression path of mysql.
  • Datadir: data such as subsequent initialization will be stored in this directory, and a new data folder will be created under this directory.
  • Run windows command line as an administrator
  • Enter the mysql decompress bin directory
  • Run mysql -- initialize -- user = mysql -- console
  • Run the command: mysqld -- install [install mysql Service]
  • If Yes --- execute mysqld -- remove
  • Reinstall the mysql service and run the command mysqld -- install
  • Enter mysql-u root-p in the command line. error 1045 (28000)
  • In the my. ini file, add skip-grant-tables to the last line after [mysqld ].
  • Close the mysql service and restart it.
  • Net stop mysql
  • Net start mysql
  • Enter directly without a password
  • Select mysql database: Execute use mysql
  • Update table user: update user set authentication_string = 'root' where user = 'root'
  • Operation successful. Exit mysql
  • Restart mysql Service

The above is a detailed tutorial on MySQL decompression configuration steps. 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!

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.