I have a file dump.sql
with many databases in it: mydb1
, mydb2
, mydb3
, etc.
How to import only mydb3
and not the other databases?
Won't:
mysql> create database mydb3;
mysql> use mydb3;
mysql> source /path/to/dump.sql;
import all databases?
source
does not recognize that you want only a subset of the file.sed
adapter for such kind of tasks? How would you use it here?sed
is a simple, general-purpose, command-line editor; it dates back decades, long before the term "adapter" was invented.