Bug #8223 | incorrect update denied messages | ||
---|---|---|---|
Submitted: | 31 Jan 2005 23:11 | Modified: | 7 Mar 2005 9:09 |
Reporter: | Andy | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.0.2-alpha-max | OS: | Linux (Linux 2.6.10) |
Assigned to: | CPU Architecture: | Any |
[31 Jan 2005 23:11]
Andy
[1 Feb 2005 9:39]
Hartmut Holzgraefe
Can you please add the exact error message and SHOW CREATE TABLE output for both tables involved?
[1 Feb 2005 15:28]
Andy
create table statements : CREATE TABLE `x` ( `a` char(1) default NULL, `b` char(1) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 CREATE TABLE `y` ( `a` char(1) default NULL, `b` char(1) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 Error message : DBD::mysql::st execute failed: update command denied to user 'f'@'thumper2.emsphone.com' for table 'y' at /mnt/linuxha1/usr/packages/file_find_project/test2.pl line 11. f@thumper2.emsphone.com has select and update permission on x and y. I could not repeat the problem using the debugging version of mysql.
[2 Mar 2005 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[7 Mar 2005 9:09]
Aleksey Kishkin
Hi! I was not able to reproduce it on computer: vendor_id : GenuineIntel cpu family : 6 model : 7 model name : Pentium III (Katmai) stepping : 3 cpu MHz : 547.622 Probably I must know more conditions for reproduce this bug. If you have more ideas how to reproduce it, please let us know.
[11 Nov 2005 16:42]
jim obrien
I can repeat this bug in 4.1.15 client on . One way is to do an update on the same table and run the script simultaneously about three times in the background. mysql Ver 14.7 Distrib 4.1.15, for pc-linux-gnu (i686) using readline 4.3 mysql> select version(); +---------------------+ | version() | +---------------------+ | 4.1.10a-pro-gpl-log | +---------------------+ 1 row in set (0.00 sec) script: #!/usr/bin/perl use strict; use DBI; my $dbh = do_connect("---", "----", "----", "-----", 3306); my $sql = qq { update table set x = 'somevalue' where pk = ? and pk2= ? }; my $i = 1; while($i < 1000000) { my $sh = $dbh->prepare($sql); my $rc = $sh->execute( 888222, 'an@email.com'); if($rc) { print "$i: worked\n"; } else { print "$i: ERROR " . $dbh->errstr; enditall(); } $sh->finish; $i++; } sub enditall{ $dbh->disconnect; exit; } sub do_connect { my $db = shift or return undef; my $user = shift or return undef; my $pwd = shift or return undef; my $host = shift or return undef; my $port = shift or return undef; my $dbstr = "DBI:mysql:database=$db"; $dbstr = $host ? "$dbstr;host=$host" : $dbstr; $dbstr = $port ? "$dbstr;port=$port" : $dbstr; return DBI->connect( $dbstr, $user, $pwd, {} ); }