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