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 PHP & Databases with PDO Getting Started With PDO Introductions

Bryan Davidson
Bryan Davidson
4,563 Points

How do I get the database files running locally? I have MySQL installed. Do I need SQL Lite? What about the Sakila db?

I think I need a step by step on how to:

  • Install SQLite
  • Install the Sakila Database

I have MySQL installed. I know I can use work spaces, but I am able to get a better handle on things when I run the projects locally and set them up myself. Thanks!

2 Answers

Matt Trask
Matt Trask
10,027 Points

SQLite is basically SQL, just that its a database that you create everytime you run the scripts on the page. So its like a fast acting sql db.

Matt Trask
Matt Trask
10,027 Points

If you have a database built locally, you can export the sql file and migrate it on to the server.

Bryan Davidson
Bryan Davidson
4,563 Points

Thanks Matt. I ended up creating the Sakila DB in MySQL and using MySQL for the tutorial. I'm not familiar with SQL Lite, but the tutorial worked the same with MySQL.