Heidegger has asked for the wisdom of the Perl Monks concerning the following question:
The problem is: the table name in the database is Users. My script cannot connect to that table. It must be an upper case problem, doesn't matter how I write it, "users", "Users" or "USERS". The script writes, that $database_name.users does not exist. I cannot change the table name, I have to connect to this table somehow. I've heard somewhere, that when you connect to mysql, it's best when table names are in lower case. Has anyone encountered this upper case mysql table name problem? Thank you. P.S. My script runs on Windows platform, the database server is on Linux.use DBIx::Recordset; my %db_setup = ( '!DataSource' => "DBI:mysql:$database_name:$url", '!Username' => $user, '!Password' => $password, '!Table' => 'users' ); *users = DBIx::Recordset->Setup(\%db_setup) or die "Couldn't connect t +o the database: $DBI::errstr.\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Connecting to mySQL using DBIx::Recordset - table name upper case problem
by gmax (Abbot) on Jan 27, 2003 at 10:17 UTC | |
by Heidegger (Hermit) on Jan 27, 2003 at 10:44 UTC |