Skip to content

Batch script to start, stop, and display status of DB services windows.

Notifications You must be signed in to change notification settings

terrabys/dbcontrols

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

DB-Controls

Batch script to start, stop, and display status of DB services in windows.

This cmd script was created to have controls over MySQL, PostgrasSQL, and MongoDB services to start & stop them on demand, so not keep the services running all the time in a background. this script also can start every DBs respective GUI application i.e. MySQL Workbench, PgAdmin 4, and Compass

Installation:

Downlaod or copy to .cmd or .bat file

Configuration:

image

sqlSrvName= Your MySQL service name
pgSqlSrvName= Your PostgresSQL service name
mongoDbSrvName= Your MongoDB service name

All service names should be without quotes for example: sqlSrvName=MySQL86

pathToWorkbench="Path to workbench exe in quotes"
pathToPgAdmin="Path to PgAdmin 4 exe in quotes"
pathToMonDbCompass="Path to MongoDB Compass exe in quotes"

Example: pathToWorkbench="C:\Program Files\MySQL\MySQL Workbench 8.0\MySQLWorkbench.exe"

Change service startup type to manual to disable auto startup

image

Usage:

Choose corresponding number from the menu:
image

Requirements:

In order to work properly this script must be run as Administrator to have the ability to start or stop services on your computer there’s a privilege check at the start of the script the following message with appear if script doesn’t have admin privileges:
image

About

Batch script to start, stop, and display status of DB services windows.

Resources

Stars

Watchers

Forks