mysqli_connect database (4th) argument

Codes here !

Moderators: macek, egami, gesf

Post Reply
seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: mysqli_connect database (4th) argument

Post by seandisanti » Thu Oct 11, 2012 2:52 pm

mydb is the name of your database.

seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: mysqli_connect database (4th) argument

Post by seandisanti » Fri Oct 12, 2012 8:30 am

There is a default database of mysql, i don't know if you necessarily want to use that one for your data but someone smarter than me can tell you the pros and cons on that one. if you'd already created tables etc that you were intending to use, you can also do
mysql>use test;
Database changed
mysql>show tables;
to see the list of tables in a database

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 3 guests