I am trying to create an installer with Inno Setup which installs a Server or Terminal of a point of sale, the problem is that when I install a terminal I need to verify if the database exists in the Host
specified (Server) to be able to advance.
The way I achieve and get close to what I want to do is by running the mysqldump.exe
:
mysqldump.exe -uroot -pjavac -P3500 -h10.1.12.79 baseDatos
The problem I have is that I don't want to create a backup, I just need to check if the database exists or not, with some lightweight command line program.
Is there any tool that can check the existence of a database and can run it for CMD
similar?
You can use
mysql
like this for example:If the basis: