[DiscordArchive] Could someone help me with creating batch file for mysql start and stop please ?
[DiscordArchive] Could someone help me with creating batch file for mysql start and stop please ?
Archived author: Dev2K23 • Posted: 2022-07-31T13:09:57.061000+00:00
Original source
Could someone help me with creating batch file for mysql start and stop please ?
Archived author: Dev2K23 • Posted: 2022-07-31T13:10:27.831000+00:00
Original source
located _ServerFiles/mysql/bin/
Archived author: Dev2K23 • Posted: 2022-07-31T13:12:28.985000+00:00
Original source
tied "C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld"
Use the following command to stop the server. In this case the username is root and the password is wibble.
"C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqladmin" -u root -pwibble shutdown
However, this just didn't work when I tried to use it in a .bat file. Realising that MySQL installs a service, I wondered if I could use the net command in order to start and stop the server. It turns out that the command is quite easy to use, so to turn the MySQL server on use the following command.