Menu

list_dbs replacement

Help
2003-07-15
2012-09-19
  • Grzegorz Jasko

    Grzegorz Jasko - 2003-07-15

    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

     
    • Greg Fortune

      Greg Fortune - 2003-07-15

      Just use the query, 'SHOW DATABASES'

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.