"Vegas Original" MySQL Green version installation method

Source: Internet
Author: User

Original: "Vegas original" MySQL Green version installation method

The so-called green version, is no installer MySQL, completely need to rely on manual operation, the advantage is that, after the re-installation of the system, as long as the configuration once again, you can use.

How to do it:

1, set the system environment variable, add D:\mysql\bin in Path

2, modify the contents of the My-small.ini file, add the following content


Basedir=d:\mysql
Datadir=d:\mysql\data


When modified, save as My.ini

3, the installation of MySQL service, the service name itself is defined as MySQL.
1), enter the DOS window
2), execute the command to install the MySQL service name:
Mysqld-install mysql--defaults-file= "D:\mysql\my.ini"
The service successfully installed appears. Indicates that the installation was successful.


3), start the MySQL service
net start MySQL

4, log in to MySQL server, view database

Ok.

*************************************************************************************************************** *****************************

PS1: If the first few steps go wrong, the way to uninstall MySQL is:

Mysqld-remove

Ps2:mysql installation error, check the log path: D:\mysql\data\[hostname].err

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.