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. Advertisements

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


  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. Advertisements

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:
    1,133
    Roedy Green
    Jan 2, 2006
  2. ding feng
    Replies:
    2
    Views:
    3,267
    ding feng
    Jun 25, 2003
  3. Bobby Chamness
    Replies:
    2
    Views:
    2,623
    Joe Smith
    Apr 22, 2007
  4. Jack-2
    Replies:
    3
    Views:
    588
    Jack-2
    Dec 24, 2003
  5. Java  script  Dude

    IE name="name" & form.name property bug

    Java script Dude, Jun 29, 2004, in forum: Javascript
    Replies:
    5
    Views:
    501
    Java script Dude
    Jun 30, 2004
  6. Yakov
    Replies:
    1
    Views:
    215
    John W. Krahn
    Nov 12, 2006
  7. PhpCool
    Replies:
    9
    Views:
    397
    David Mark
    Oct 30, 2008
  8. Anuj
    Replies:
    1
    Views:
    287
Loading...