BUG report (CREATE TEMPORARY TABLES problem) 4.0.2/4.0.3-bk snapshot
am 30.07.2002 14:03:30 von rathamahata>Description:
Any grant at a tables level make 'CREATE TEMPORARY TABLE' privilege
not working
ERROR 1142
>How-To-Repeat:
=091) (under root)
=09mysql> GRANT CREATE TEMPORARY TABLES ON *.* TO
test_user@localhost IDENTIFIED BY 'test_pass';
=09Query OK, 0 rows affected (0.01 sec)
=09
=092) (under test_user)
=09mysql> CREATE TEMPORARY TABLE tmp_table(i INT);
=09Query OK, 0 rows affected (0.00 sec)
=09
=093) (under root)
=09mysql> CREATE TABLE t (i INT);
=09Query OK, 0 rows affected (0.00 sec)
=09mysql> GRANT SELECT ON test.t TO test_user@localhost;
=09Query OK, 0 rows affected (0.00 sec)
=09
=094) (under test_user)
=09mysql> CREATE TEMPORARY TABLE tmp_table(i INT);
=09ERROR 1142: create command denied to user: 'test_user@localhost' for t=
able
'tmp_table'
>Fix:
=09mysql> DELETE FROM mysql.tables_priv;
=09mysqadmin relad
>Submitter-Id:
>Originator:=09Sergey S. Kostyliov
>Organization:
=09eHouse (http://www.ehouse.ru)
>MySQL support: none
>Synopsis:=09'CREATE TEMPORARY TABLE' privilege broken by any per-tables =
grant
>Severity:=09 serious
>Priority:=09medium
>Category:=09mysql
>Class: sw-bug
>Release:=09mysql-4.0.3-alpha (Source distribution)
>Server: /usr/bin/mysqladmin Ver 8.35 Distrib 4.0.3-alpha, for pc-linux-=
gnu=20
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.3-alpha-log
Protocol version=0910
Connection Localhost via UNIX socket
UNIX socket /var/lib/mysql/mysql.sock
Uptime: =0922 hours 39 min 52 sec
Threads: 2 Questions: 6558765 Slow queries: 0 Opens: 481 Flush tables=
: 1 =20
Open tables: 234 Queries per second avg: 80.385
>Environment:
System: Linux white.unishop.org.ru 2.4.19-rc3aa3 #1 SMP ðÎÄ éÀ=CC=
29 12:01:56=20
MSD 2002 i686 unknown
Architecture: i686
Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc=20
/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.3 2.96-110)
Compilation info: CC=3D'/usr/local/gcc-3.1/bin/gcc' CFLAGS=3D'-O4 -march=
=3Dpentium3=20
-mcpu=3Dpentium3 -msse -pipe' CXX=3D'/usr/local/gcc-3.1/bin/gcc' CXXFLA=
GS=3D'-O4=20
-march=3Dpentium3 -mcpu=3Dpentium3 -msse -pipe -felide-constructors=20
-fno-exceptions -fno-rtti -DUSE_MYSYS_NEW' LDFLAGS=3D''
LIBC:=20
lrwxrwxrwx 1 root root 13 éÀ=CC 8 20:18 /lib/libc.s=
o.6 ->=20
libc-2.2.5.so
-rwxr-xr-x 1 root root 1260480 éÀ=CE 18 18:45 /lib/libc-2=
2.5.so
-rw-r--r-- 1 root root 2312370 éÀ=CE 18 18:13 /usr/lib/li=
bc.a
-rw-r--r-- 1 root root 178 éÀ=CE 18 17:58 /usr/lib/li=
bc.so
lrwxrwxrwx 1 root root 10 éÀ=CC 8 23:35 /usr/lib/li=
bc-client.a=20
-> c-client.a
Configure command: ./configure --prefix=3D/usr --libexecdir=3D/usr/sbin=20
--localstatedir=3D/var/lib/mysql --mandir=3D/usr/share/man=20
--infodir=3D/usr/share/info --enable-assembler=20
--with-mysqld-ldflags=3D-all-static --with-mysql-user=3Dmysql --with-inno=
db=20
--with-unix-socket-path=3D/var/lib/mysql/mysql.sock=20
--with-extra-charsets=3Dlatin1,koi8_ru,cp1251 --enable-thread-safe-client
------------------------------------------------------------ ---------
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 bugs-thread12241@lists.mysql.com
To unsubscribe, e-mail