Skip all databases and run only specific one

Posted by Ergec on Stack Overflow See other posts from Stack Overflow or by Ergec
Published on 2010-03-09T09:44:14Z Indexed on 2010/03/09 10:06 UTC
Read the original article Hit count: 161

Filed under:
|
|
|

I have a sql file generated by "mysqldump --all-databases" . There are many databases in it. What I want to do is to update my local database but only a specific one, not all. I tried to use "mysql -database=db_name < file.sql" but it updated all databases. Is there a way to skip all databases except the one that I want.

© Stack Overflow or respective owner

Related posts about mysql

Related posts about mysqldump