>Description: UPDATE command fail with multiple myisam tables with error: ERROR 1142: update command denied to user: '[EMAIL PROTECTED]' for table '***' This situation occures only when non-root user make UPDATE and 'tables_priv' not empty (no matter what it contains). Seems, that mysql ignores 'db' ad read 'tables_priv' first. >How-To-Repeat: mysql> \u test;
mysql> CREATE TABLE `t1` ( `val1` char(10) default NULL, `val2` char(10) default NULL ) TYPE=MyISAM; mysql> CREATE TABLE `t2` ( `val1` char(10) default NULL, `val2` char(10) default NULL ) TYPE=MyISAM; mysql> UPDATE t1,t2 set t1.val1=9 WHERE t2.val1='1' AND t2.val2=t1.val2; ERROR 1142: update command denied to user: '[EMAIL PROTECTED]' for table 't2' mysql> show grants for [EMAIL PROTECTED]; +--------------------------------------------------------+ | Grants for [EMAIL PROTECTED] | +--------------------------------------------------------+ | GRANT USAGE ON *.* TO 'user'@'localhost' | | GRANT ALL PRIVILEGES ON `test`.* TO 'user'@'localhost' | +--------------------------------------------------------+ 2 rows in set (0.01 sec) >Fix: >Submitter-Id: n/a >Originator: [EMAIL PROTECTED] >Organization: n/a >MySQL support: none >Synopsis: UPDATE fail with multiple tables (MyISAM) >Severity: non-critical >Priority: low >Category: mysql >Class: sw-bug >Release: mysql-4.0.11a-gamma (Source distribution) >Server: /usr/bin/mysqladmin Ver 8.40 Distrib 4.0.11a-gamma, for pc-linux-gnu on i686 Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL license Server version 4.0.11a-gamma Protocol version 10 Connection Localhost via UNIX socket UNIX socket /var/lib/mysql/mysql.sock Uptime: 4 days 1 hour 58 min 37 sec Threads: 20 Questions: 43015649 Slow queries: 712 Opens: 12223 Flush tables: 1 Open tables: 512 Queries per second avg: 121.955 >C compiler: gcc (GCC) 3.2.2 >C++ compiler: gcc (GCC) 3.2.2 >Environment: System: Linux db.lamport.msk.ru 2.4.20-rc1aa1 #1 ώΤΧ ξΟΡ 14 22:31:09 MSK 2002 i686 unknown Architecture: i686 Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-112.7.1) Compilation info: CC='/usr/local/gcc/bin/gcc' CFLAGS='-O4 -march=pentium3 -mcpu=pentium3 -msse -pipe' CXX='/usr/local/gcc/bin/gcc' CXXFLAGS='-O4 -march=pentium3 -mcpu=pentium3 -msse -pipe -felide-constructors -fno-exceptions -fno-rtti -DUSE_MYSYS_NEW' LDFLAGS='' ASFLAGS='' LIBC: lrwxrwxrwx 1 root root 13 ξΟΡ 10 19:47 /lib/libc.so.6 -> libc-2.2.4.so -rwxr-xr-x 1 root root 1285884 οΛΤ 10 21:19 /lib/libc-2.2.4.so -rw-r--r-- 1 root root 27338282 οΛΤ 10 20:48 /usr/lib/libc.a -rw-r--r-- 1 root root 178 οΛΤ 10 20:48 /usr/lib/libc.so lrwxrwxrwx 1 root root 10 νΑΚ 26 2002 /usr/lib/libc-client.a -> c-client.a Configure command: ./configure '--build=i686-pc-linux-gnu' '--prefix=/usr' '--libexecdir=/usr/sbin' '--localstatedir=/var/lib/mysql' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--enable-assembler' '--with-mysqld-ldflags=-all-static' '--with-mysql-user=mysql' '--with-innodb' '--with-unix-socket-path=/var/lib/mysql/mysql.sock' '--with-extra-charsets=latin1,koi8_ru,cp1251' '--enable-thread-safe-client' 'CC=/usr/local/gcc/bin/gcc' 'CFLAGS=-O4 -march=pentium3 -mcpu=pentium3 -msse -pipe' 'CXXFLAGS=-O4 -march=pentium3 -mcpu=pentium3 -msse -pipe -felide-constructors -fno-exceptions -fno-rtti -DUSE_MYSYS_NEW' 'CXX=/usr/local/gcc/bin/gcc' 'build_alias=i686-pc-linux-gnu' --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php