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 trialJavier 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,694 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,694 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,694 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