0

How do I export table "practices" from db1 into db2? How do I do all tables from db1 into db2?

With Mysql, fill in the blank. What do I type at the prompt:

Mysql>
2
  • Why are you asking first for one table then for all tables? Is there a specific issue you're working on or is this something like a homework problem? Oct 20, 2010 at 17:33
  • @Bartimus: I anticipate doing both in the near future and thought I'd avoid doing 2 separate questions. Oct 21, 2010 at 12:40

2 Answers 2

0

Create new table in DB2 that's a copy of practices in DB1:

Mysql> USE DB2;
Mysql> CREATE TABLE practices SELECT * FROM DB1.practices;
0
0
CREATE TABLE `db2`.`practices` SELECT * FROM `db1`.`practices`

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .