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

PHP Integrating PHP with Databases Databases and PHP Getting Started with PDO

Javier MARQUEZ
Javier MARQUEZ
11,877 Points

I 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
Javier MARQUEZ
11,877 Points

Thanks 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
Simon Coates
28,694 Points

are you using database.sql? or are you trying to import the .db file?

Javier MARQUEZ
Javier MARQUEZ
11,877 Points

I am trying to import database.db

Simon Coates
Simon Coates
28,694 Points

i 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
Javier MARQUEZ
11,877 Points

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

Simon Coates
Simon Coates
28,694 Points

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

Javier MARQUEZ
Javier MARQUEZ
11,877 Points

Thank you very much for your help.

Actually I did, there is none.