Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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,159 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. :)