mysql_list_dbs
List databases available on a MySQL server
Description
resourcemysql_list_dbs
resource
link_identifier
mysql_list_dbs will return a result pointer
containing the databases available from the current mysql
daemon. Use the mysql_tablename function to
traverse this result pointer, or any function for result tables.
mysql_list_dbs example
Database . "\n";
}
?>
]]>
The above example would produce the following output:
The above code would just as easily work with
mysql_fetch_row or other similar functions.
For downward compatibility mysql_listdbs can
also be used. This is deprecated however.
See also mysql_db_name.