Reference article:
Http://www.cnblogs.com/niuniutry/p/3555778.html
Http://wenku.baidu.com/link?url=WI9Cyl5AMHOlps1BgNZmxhWfGj798OAsoMYP_ Vqlpzxawrh3ctelcmxqcpkfqpqszhyc0pducg6icyntrpaivyw9k6xstloeio95ocuzayi
If you haven't seen the official documentation and need to get started with MySQL quickly, this batch is just right for you, and this file comes with some instructions to look at. Suitable version: Mysql5.6.12 and above
@echo/* Uninstall MySQL service, remove comments before use */@echo mysqld--remove
@echo/* Note that this file must be executed in this directory, or the installation process will be incorrect */@echo/* Reboot after uninstall to install */@echo/* Install mysql*/
Mysqld--install MySQL--defaults-file= "%mysql_home%\my.ini"
@echo/* Startup mysql*/net start MySQL
@echo/* Change root password */
@echo/*set password for ' root ' @ ' localhost ' =password (' * * * ') */
@echo/* If only the MySQL service is uninstalled, the user name and password in the database table are still valid after reloading */@echo/*mysql user name password is saved in the Users table in MySQL database */
MySQL Free install version (install and start with batch processing)