Run multiple sql files in mysql batch

Posted by hmak on Stack Overflow See other posts from Stack Overflow or by hmak
Published on 2010-03-16T22:17:30Z Indexed on 2010/03/16 22:21 UTC
Read the original article Hit count: 203

Filed under:
|

to run a single file you can run in mysql

.\ filename

or you outside of mysql you can run

mysql < filename

I have a directory of sql files so I'm trying to run them all at once by using a wildcard

*.sql

but it doesn't work.

Any ideas?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about batch