I have 25 sql files that comes from a mysqldump each one. Lets says they call db1.sql, db2.sql ... and so on.
I want to create a sql file to call all the others. Lets says this file will cal rumTest.sql .
Inside runTest.sql I wrote:
\. C:\pathToFIle\db1.sql;
\. C:\pathToFIle\db2.sql;
\. C:\pathToFIle\db3.sql;
...
So, inside my command window I call the file as
\. C:\pathToFIle\rumTest.sql;
This is not working. I've tried in different ways to put double cotes when calling "\. C:\pathToFIle\db1.sql;" inside rumTest.sql.
I see that Mysql reads what is inside rumTest.sql but not execute the command to read db1.sql, for example. So, what could be the best approach to perform this task? I fond these 2 posts but they are related to oracle I need to call another sql file within an sql file using sql plus