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 trialWayne Comber
8,169 PointsHow can I use the database file in my XAMPP MySQL installation?
Hi,
I have downloaded the project files for the course, and I am wondering if there is a way I can load the database file into my XAMPP install which has MySQL as its database? Thanks
5 Answers
Wayne Comber
8,169 PointsNever mind. I found the database.sql file at the bottom of the Reading Project Data video. Copied that into the SQL script area in my MySQL database and we are good to go.
Wayne Comber
8,169 PointsThanks Jonathon. I tried changing the extension and importing it, and phpmyadmin said there were 1351 errors! Not going to be able to sort all those out. Any other ideas?
Wayne Comber
8,169 PointsThanks for your reply Mikkel. I had already tried that. The problem is that the database file that came with the project files has a .db extension, and wont import that way.
Jonathan Grieve
Treehouse Moderator 91,253 Pointschange the file extention to and sql file. You have have to do some poking around to fix any errors phpmyadmin finds but it should work. :-)
Mikkel Rasmussen
31,772 PointsGo to localhost/phpmyadmin/
Make a new database or use an existing one.
Open the sql file.
Copy paste all text into SQL - remember to have the database selected :)
Tom Goldie
Courses Plus Student 8,379 PointsI ran into the same problem in WAMP. Turns out you must import the file into an existing database. So I just created the database with the defaults in phpmyadmin, then was able to import the sql file. And yes, the database file is where you said (thanks for that), but inconvenient that the download link isn't included in the first tranche of videos, but in the second - Creating Records: Reading Project Data....
jlampstack
23,932 Pointsjlampstack
23,932 PointsI downloaded the sql file from the Reading Project Data video but it's for a different table that gets introduced in that video. I'm not sure why instructor uses .db for one video and the .sql for another?
Renzo Salvador
523 PointsRenzo Salvador
523 PointsSo the conexion file changes right?