Compressed package installation MySQL Service

Source: Internet
Author: User

The last time I forgot to compress the package how to install the MySQL service, hope not to forget again

There are two ways to install MySQL on Windows, using Mysqlinstaller, using compressed files

Some points to be aware of
1, unzip the directory is the installation directory.
2, build configuration file (Option files), after extracting the root directory has my-default.ini. Official website describes MySQL server in Windows
The configuration file can be named My.ini (preferred), my.conf (), in C \, the installation directory, etc. at startup
If the C drive is not a boot disk, you cannot use my.conf.
3,mysql 5.7.6 after the compressed package no longer contains the data directory, you can use--initialize or--initialize-insecure
Initialization The random password generated by--initialize is saved in the Data\[computer name].err file,--initialize-
The password generated by insecure is empty. Modify password statement alter USER ' root ' @ ' localhost ' identified by
' New_password ';
4, related command: mysqld--remove uninstall MySQL service, mysqld--install install MySQL service. After the service is successfully installed, you can initialize the operation.
Then use the net start mysql,net stop MySQL command to start the stop service.

Compressed package installation MySQL Service

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.