I am using the following Batch script.
It generates a .sql file with same size as the one i get when i manually use the mysqldump command from the command line.
However, when i try to load this .sql to a database using :
mysql -u root -p db < file.sql
It does not load anything, no db tables/files are created. Is there an error in the script? or am i missing something?
For anyone in the same situation, here is what i did and it worked:
I replaced the line:
By:
And the line:
By:
And now it is working.
I do not really know why it didn’t work using the previous method, if you know why feel free to comment so we can all understand.