I'm trying to run check mysql and repair mysql functions in a sql file from another batch file.
I get the error as:
C:\wamp64\bin\mysql\mysql5.7.19\bin\mysql.exe" "mysql -u root -p < batch.sql"
ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO)
Batch File (run.bat):
"C:\wamp64\bin\mysql\mysql5.7.19\bin\mysql.exe" "mysql -u root -p < batch.sql"
pause
SQL File (batch.sql):
CHECK TABLE logs;
REPAIR TABLE logs;