mysql list all db name

Discussion in 'Perl Misc' started by Alexandre Jaquet, Feb 28, 2005.

  1. Hi could anyone let me know how to list all database name of a mysql server

    thx in advance
     
    Alexandre Jaquet, Feb 28, 2005
    #1
    1. Advertising

  2. Sherm Pendley, Feb 28, 2005
    #2
    1. Advertising


  3. > Alexandre Jaquet wrote:


    > > Hi could anyone let me know how to list all database name of a mysql
    > > server


    #connect your dbh, then :
    $dbh->prepare("show databases");
    $dbh->execute();
    # then you can fetch your result.

    HTH
    Michael
     
    Michael Korte, Feb 28, 2005
    #3
  4. Michael Korte a écrit :
    >>Alexandre Jaquet wrote:

    >
    >
    >>>Hi could anyone let me know how to list all database name of a mysql
    >>>server

    >
    >
    > #connect your dbh, then :
    > $dbh->prepare("show databases");
    > $dbh->execute();
    > # then you can fetch your result.
    >
    > HTH
    > Michael
    >
    >

    thx =)
     
    Alexandre Jaquet, Feb 28, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?iso-8859-1?B?bW9vcJk=?=
    Replies:
    7
    Views:
    863
    Roedy Green
    Jan 2, 2006
  2. ding feng
    Replies:
    2
    Views:
    2,857
    ding feng
    Jun 25, 2003
  3. Bobby Chamness
    Replies:
    2
    Views:
    2,416
    Joe Smith
    Apr 22, 2007
  4. PhpCool
    Replies:
    9
    Views:
    253
    David Mark
    Oct 30, 2008
  5. Anuj
    Replies:
    1
    Views:
    143
Loading...

Share This Page