On Windows Devices
On Windows devices, with the help of PowerToys Run, you can easily start and stop software.
Start Redis
Redis
5.0.14download
redis.bat
@echo off
start cmd /k "cd /d D:\App\Redis & echo [Redis started] & echo [Press Ctrl + C to stop] & .\redis-server.exe .\redis.windows-service.conf"
To stop, press Ctrl + C
.
Start MySQL 5.7
MySQL
5.7.39download
my.ini
# mysql 5.7 conf
[mysqld]
# port
port=3306
# default charset
character-set-server=UTF8MB4
# default engine
default-storage-engine=INNODB
# install dir
basedir=D:\App\MySQL\5.7.44
# data dir
datadir=D:\App\MySQLDATA\5.7.44
# sql mode
sql-mode=""
[mysql]
port=3306
default-character-set=UTF8MB4
[client]
port=3306
default-character-set=UTF8MB4
This script uses the unzipped MySQL
mysql_5.7.bat
@echo off
start cmd /k "cd /d D:\App\MySQL\5.7.44\bin & echo [MySQL 5.7 started] & echo [Press Ctrl + C to stop] & .\mysqld"
To stop, press Ctrl + C
.
Start MySQL 8.0
MySQL
8.0.31download
my.ini
# mysql 8.3.0 conf
[mysqld]
# port
port=3306
# default charset
character-set-server=UTF8MB4
# default engine
default-storage-engine=INNODB
# install dir
basedir=D:\App\MySQL\8.3.0
# data dir
datadir=D:\App\MySQLDATA\8.3.0
# sql mode
sql-mode=""
[mysql]
port=3306
default-character-set=UTF8MB4
[client]
port=3306
default-character-set=UTF8MB4
This script uses the unzipped MySQL
mysql_8.0.bat
@echo off
start cmd /k "cd /d D:\App\MySQL\8.3.0\bin & echo [MySQL 8.3 started] & echo [Press Ctrl + C to stop] & .\mysqld"
To stop, press Ctrl + C
.