in reply to Connecting to mySQL using DBIx::Recordset - table name upper case problem
This script will give you the list of tables you are authorized to see in that database.#!/usr/bin/perl -w use strict; use DBI; my $database_name = "mydb"; my $user = 'I_am'; my $password = "smart"; my $url="db.strangehost.com"; my $dbh=DBI->connect("dbi:mysql:$database_name;host=$url", $user,$password, {RaiseError=>1}); for ($dbh->tables) { print "$_\n"; } $dbh->disconnect();
_ _ _ _ (_|| | |(_|>< _|
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Connecting to mySQL using DBIx::Recordset - table name upper case problem
by Heidegger (Hermit) on Jan 27, 2003 at 10:44 UTC |