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.

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,692 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,692 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,692 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.