-3

How to display list of databases present on your localhost server

Shahroze Ali
  • 57
  • 1
  • 10

3 Answers3

0

Try following query:

SELECT schema_name FROM information_schema.schemata

0

It had existed here (by another person), You can try it here:
How to show MySQL databases on a PHP script?
and
php mysqli list databases
and finally
http://php.net/manual/en/function.mysql-list-dbs.php

I hope it can help you

ThangLe
  • 878
  • 1
  • 8
  • 15
0

show all database just use SHOW DATABASES

pythonic
  • 7
  • 5