Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools Database Foundations Securing and Maintaining a MySQL Database Backing up and Restoring Databases

Aya Yousef
Aya Yousef
9,658 Points

tables are not restored

Hello,

when I try to import my sql database .. the database is restored quite well with the new name treehouse_movie_db_clone. Nevertheless the tables are not restored although I selected them all when I exported the database in the beginning.

1 Answer

Nathan Tallack
Nathan Tallack
22,158 Points

Take care to ensure that "Dump Structure and Data" is selected down the bottom. You may have "Dump Structure Only" selected. That could cause what you are experiencing.

Another thing to do is confirm that your export actually contains the data. Take a look at the sql file in a text editor and make sure it contains the big long INSERT INTO lines for each table, which is the actual contents of the table. If they are missing do the dump again and make sure "Dump Structure and Data" is selected.

Hopefully one of these things will fix your problem. :)