Name

Msql::listdbs

Synopsis

@databases = $db->listdbs;

Msql::listdbs returns an array of the databases available on the server. If there are no databases on the server, it returns an empty array.

Example

use Msql;
my $db = Msql->connect;

my @databases = $db->listdbs;
print "Available databases:\n\n" . join("\n",@databases);

Get MySQL and mSQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.