Is there any possibility to list all databases present on a mysql server? I used an older version of MySQLdb (the version string of MySQLdb.py file was $Revision: 1.40 $) with python1.52 and RH7.1 and it works fine - the call of list_dbs() on the connection object did the job. In MySQLdb versions 0.9.0 an 0.9.1 from RH8 and 9 this function is no longer available. Doed exist any replacement?
Greetings
Grzegorz
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there any possibility to list all databases present on a mysql server? I used an older version of MySQLdb (the version string of MySQLdb.py file was $Revision: 1.40 $) with python1.52 and RH7.1 and it works fine - the call of list_dbs() on the connection object did the job. In MySQLdb versions 0.9.0 an 0.9.1 from RH8 and 9 this function is no longer available. Doed exist any replacement?
Greetings
Grzegorz
Just use the query, 'SHOW DATABASES'