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 to Know the Project

Carlos Enrique Castañeda Gutiérrez
Carlos Enrique Castañeda Gutiérrez
13,886 Points

PHPMyAdmin Error Trying to Import .sql File

Hello:

I want to work this course locally but I have a problem when I try to import the .sql file

This is the error message:

"#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 "

I'll appreaciate some help on this

Thanks

1 Answer

Hi Carlos.

Check your SQL file that you're importing to ensure it doesn't have any lines at the beginning which aren't SQL. By the looks of it, line 1 has some descriptor text rather than SQL.

Carlos Enrique Castañeda Gutiérrez
Carlos Enrique Castañeda Gutiérrez
13,886 Points

Thanks Mark for your answer; how do I edit, with just notepad? or do I need a special tool? because when I opened with Notepad many weird characters appeared, so I decided not to edit because might cause file corruption.

What should I do?