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

mikkel pohjola
mikkel pohjola
1,966 Points

what db to use and how to connect to it

what database do you use phpMyAdmin or another one. I use phpMyAdmin and i dont get anything from the DB, how do i connect to it

1 Answer

Antonio De Rose
Antonio De Rose
20,885 Points
To answer your question, it depends on so many questions.

There are so many db's
MySQL
MSSQL
etc.

Note, phpMyAdmin is not a DB, it is actually an admin tool (web application), 
it gives luxury to access DB's via that tool,  however via phpMyAdmin, 
you'd only able to connect to MySQL or MariaDB, cause, 
that is what is phpMyAdmin meant / allowed to do.

So if you are to go via phpMyAdmin, my strong guess would be, 
you are looking at MySQL or MariaDB, adding further, 
since you are a teamtreehouse student, 
I'd say probably you are looking at MySQL, 
as I have not seen any MariaDB courses.

now, coming to the second part of your question, how to connect to it, 
I believe it is via a program, 
so it would all depend on what programming language you are using.