vrerabek
vrerabek

Reputation: 183

I've got access to database but not database name, can I find it out somehow?

I need to submit some data into database using php,sql for school homework.

I think know how to do it, but all the data about the connection I recieved are:

If I want to connect to database using mysqli_connect($address,$username,$password,$dbName) I can't, because I dont know $dbName.

Is this part of the homework that I have to somehow find out the name of the db(is it possible?) Or is there an error in assignment?

I would be very glad if you could help me out. I've been trying to wrap my head around it for solid two hours, but without success. Thanks!

Upvotes: 0

Views: 57

Answers (1)

Marco Salerno
Marco Salerno

Reputation: 5203

show databases

will give you a table with a list of databases in your database

Upvotes: 3

Related Questions