MySQL & DBIx feedback

From: Jason Armstrong (ja_at_riverdrums.com)
Date: 03/28/04


Date: Sun, 28 Mar 2004 13:31:49 +0200
To: dbi-users@perl.org

I was attempting something very simple:

$ mysqladmin create test
mysql> create table t ( name varchar(64) );

#!/usr/bin/perl -w
use DBIx::Recordset;
my $db = new DBIx::Database ( { '!DataSource' => 'DBI:mysql:test',
                                '!Username' => 'jason',
                                '!Password' => 'xxx',
                                '!KeepOpen' => 1 } );

Output:
DBD::mysql::st execute failed: Table 'test.`t`' doesn't exist at /usr/share/perl5/DBIx/Compat.pm line 81.
Cannot list fields for `t` (Table 'test.`t`' doesn't exist) at /home/jason/perl/db.pl line 3

Versions:

perl => 5.8.3-2
mysql => 4.0.18-2
DBIx => 0.24-7 (libdbix-recordset-perl)
DBD::mysql => 0.7.1-2 (libdbd-mysql)
DBD::mysql => 2.9003-2 (libdbd-mysql-perl)

  All of the above on a Debian system.

I added the following line in DBIx/Database.pm

line 642:
$stab =~ s/`//g;

And it worked again.

Regards,

--
Jason Armstrong


Relevant Pages

  • Re: myqsl dummy needs help
    ... 609 of MySQL, Third Edition, by Paul DuBois and read through the next ... You need to set both these passwords for root. ... user that user is totally separate from the OS root account. ... then you can set one using mysqladmin. ...
    (Fedora)
  • mysqladmin: unable to change password
    ... mysqladmin Ver 8.23 Distrib 3.23.49, ... sudo mysqladmin -u root password "newpwd" ... mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD; ... You are using MySQL as an anonymous users and anonymous users ...
    (Debian-User)
  • Re: MySQL wont start....
    ... Oliver Jato wrote: ... you change the password field in the mysql user table without using the ... mysqladmin -u root password "newpassword" ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: problem with mysql...
    ... start it with 'rcmysql start' or the Runlevel Editor in ... If you want that MySQL is started at boot time you should set it to ... mysqladmin: connect to server at 'localhost' failed ...
    (alt.os.linux.suse)
  • Re: phpMyAdmin installation problem
    ... >> Independent from phpMyAdmin, are you able to login to the MySQL server ... >> first step to make sure the MySQL connection can be successful at all. ... > no listening sockets available, ... mysql and when i type mysqladmin i receive this: ...
    (Fedora)