Forums WoW Modding Support Archives Azerothcore Discord Archives [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 ?

[DiscordArchive] Could someone help me with creating batch file for mysql start and stop please ?

rektbyfaith
Administrator
0
07-31-2022, 01:09 PM
#1
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 ?
rektbyfaith
07-31-2022, 01:09 PM #1

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 ?

rektbyfaith
Administrator
0
07-31-2022, 01:10 PM
#2
Archived author: Dev2K23 • Posted: 2022-07-31T13:10:27.831000+00:00
Original source

located _ServerFiles/mysql/bin/
rektbyfaith
07-31-2022, 01:10 PM #2

Archived author: Dev2K23 • Posted: 2022-07-31T13:10:27.831000+00:00
Original source

located _ServerFiles/mysql/bin/

rektbyfaith
Administrator
0
07-31-2022, 01:12 PM
#3
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.
rektbyfaith
07-31-2022, 01:12 PM #3

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.

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)