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