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.

Javier MARQUEZ
11,877 PointsI cannot import the database to MAMP please help me out!!
When trying to import the database to mamp, using myphp admin I get:
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SQLite format 3' at line 1
Really not sure what I am supposed to do
Thanks a lot for your help
6 Answers

Javier MARQUEZ
11,877 PointsThanks I works now. So if anyone gets the same problem, download the project files by clicking download files while on the video. Do not download the workspace itself, the SQL file is not there.
Many thanks

Simon Coates
28,692 Pointsare you using database.sql? or are you trying to import the .db file?

Javier MARQUEZ
11,877 PointsI am trying to import database.db

Simon Coates
28,692 Pointsi think that is for sqlite, it starts with "SQLite format 3 ", which is what your tripping over. You probably want to import the .sql file for mysql. Alena included .db for people using sqlite (where the file is enough) and .sql for everyone else. I think she mentions this in one of the videos. The .db is a database stored in a particular format, while the .sql is a more generic set of instruction to create tables and input data.

Javier MARQUEZ
11,877 PointsI see, would you know where I can get it? The workspace I downloaded hasinc\database.db" only.

Simon Coates
28,692 Pointson the video, go to download, and then click on project files. i just checked. the file is there. database.sql

Javier MARQUEZ
11,877 PointsThank you very much for your help.
Actually I did, there is none.

Javier MARQUEZ
11,877 PointsI think I got it