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 Connecting with PDO

Rifqi Fahmi
Rifqi Fahmi
23,164 Points

how do we make the databases?

how to make that .db file extension with our own data ???

1 Answer

Kevin Korte
Kevin Korte
28,148 Points

You'll need to make your own database, tables, and data in your tables in phpmyadmin, and than export it to get the .db file.

If you have an existing database tied to an application, than you can just go straight to exporting it in phpmyadmin.

Rifqi Fahmi
Rifqi Fahmi
23,164 Points

but I can't find the .db format in the export section in phpmyadmin :(

Kevin Korte
Kevin Korte
28,148 Points

I had to watch the video to realize they are using sqlite3. The most bare bones way to create your own db file and write data to it would be through the command line.

You could try to start here: https://www.sqlite.org/quickstart.html