1
I’m trying to create a batch file. bat to create the database and then recover formations via sql file, follows file procedure . bat:
@echo off
cls
@echo.
@echo Instalando DB
cd C:\Program Files\MySQL\MySQL Server 5.6\bin\
mysql.exe -u root -proot CREATE DATABASE BDNAME
mysql.exe BDNAME < C:\Users\BD.sql
pause
The problem is that the code only logs into MYSQL in the shell and does not perform the other procedures, how can I fix it or do otherwise?
Thank you! I will do this to get all in one . SQL.
– Artur_Indio