A
A
alex stephen2015-05-07 19:07:30
MySQL
alex stephen, 2015-05-07 19:07:30

How to load all files from a folder in Mysql?

In general, there is a folder with sql files.
I want to load them all into the database:

ls * | mysql -u admin -pw12345678 -h 127.0.0.1 databasename <

but I get:
-bash: syntax error near unexpected token `newline
'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2015-05-07
@berezuev

cat * | mysql -u admin -pw12345678 -h 127.0.0.1 databasename

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question