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 trialCarlos Enrique Castañeda Gutiérrez
13,886 PointsPHPMyAdmin 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
Mark Bridgeman
4,988 PointsHi 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
13,886 PointsCarlos Enrique Castañeda Gutiérrez
13,886 PointsThanks 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?