Search Results
mysql_list_dbs (PHP 4, PHP 5) mysql_list_dbs — List databases available on a MySQL server Warning This function was deprecated in PHP 5.4.0, and it and the entire original MySQL extension was removed in PHP 7.0.0. Instead, use either the actively developed MySQLi or PDO_MySQL extensions. See also the MySQL: choosing an API guide.
If anyone is thinking of using mysql_list_dbs, it will stop working in the future as it is deprecated. More info at php.net/manual/en/function.mysql-list-dbs.php .
- It doesn't appear as though there's a function available to do this, but you can execute a show databases; query and the rows returned will be the...
- I realize this is an old thread but, searching the 'net still doesn't seem to help. Here's my solution; $sql="SHOW DATABASES"; $link = mysqli_conne...
- Similar to Rick's answer , but this is the way to do it if you prefer to use mysqli in object-orientated fashion: $mysqli = ... // This object is m...
- Here is a complete and extended solution for the answer, there are some databases that you do not need to read because those databases are system d...
- Tried several examples from above, but couldn't get it to work, errors like array to string conversion etc... So I made this function and it works...
Return Values Returns a result pointer resource on success, or false on failure. Use the mysql_tablename function to traverse this result pointer, or any function for result tables, such as mysql_fetch_array. Examples Example 7.176 mysql_list_dbs example
mysql_list_dbs () retournera un identifiant de résultat, qui contiendra les noms des bases de données disponibles sur la connexion MySQL courante ou sur la connexion spécifiée par link_identifier.
Description resource mysql_list_dbs ( [resource link_identifier] ) Returns a result pointer containing the databases available from the current mysql daemon.
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 (PHP 4, PHP 5) mysql_list_dbs — Liste les bases de données disponibles sur le serveur MySQL Avertissement Cette extension est obsolète depuis PHP 5.5.0, et sera supprimée dans le futur. À la place, les extensions MySQLi ou PDO_MySQL doivent être utilisées.
