>Description:
        Locking tables seems to be broken for non-root mysql users,
        giving the following error:

        ERROR 1142: select command denied to user: 'foo@localhost' for 
        table 'bog'

        Works fine for root. This is using the standard Linux
        mysql-4.0.1 alpha RPMs.

>How-To-Repeat:

        $ mysql -u foo test
        mysql> create table bog (x char(1));
        Query OK, 0 rows affected (0.08 sec)
        mysql> lock tables bog write;
        ERROR 1142: select command denied to user: 'foo@localhost' for table 'bog'
        mysql> lock tables bog read;
        ERROR 1142: select command denied to user: 'foo@localhost' for table 'bog'
        mysql> drop table bog;
        Query OK, 0 rows affected (0.15 sec) 

>Fix:
        Unknown.

>Submitter-Id:  <submitter ID>
>Originator:    Gavin Carr
>Organization:  Open Fusion Pty Ltd (Australia)
 
>MySQL support: None
>Synopsis:      MySQL 4.0.1-alpha "lock tables" fails for non-root users
>Severity:      
>Priority:      low
>Category:      mysql
>Class:         sw-bug
>Release:       mysql-4.0.0-alpha (Official MySQL RPM)

>Environment:
System: Linux calix.syd.ot 2.4.3-20mdk #1 Sun Apr 15 23:03:10 CEST 2001 i686 unknown
Architecture: i686

Some paths:  /opt/perl5.6/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc 
/usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/2.96/specs
gcc version 2.96 20000731 (Linux-Mandrake 8.0 2.96-0.48mdk)
Compilation info: CC='gcc'  CFLAGS='-O6 -fno-omit-frame-pointer -mpentium'  CXX='gcc'  
CXXFLAGS='-O6 -fno-omit-frame-pointer              -felide-constructors 
-fno-exceptions -fno-rtti -mpentium'  LDFLAGS=''
LIBC: 
lrwxrwxrwx    1 root     root           13 Apr 29  2001 /lib/libc.so.6 -> libc-2.2.2.so
-rwxr-xr-x    1 root     root      1222404 May  3  2001 /lib/libc-2.2.2.so
-rw-r--r--    1 root     root     26499142 May  3  2001 /usr/lib/libc.a
-rw-r--r--    1 root     root          178 May  3  2001 /usr/lib/libc.so
Configure command: ./configure  --disable-shared --with-mysqld-ldflags=-all-static 
--with-client-ldflags=-all-static --without-berkeley-db --with-innodb 
--enable-assembler --with-mysqld-user=mysql 
--with-unix-socket-path=/var/lib/mysql/mysql.sock --prefix=/ 
--with-extra-charsets=complex --exec-prefix=/usr --libexecdir=/usr/sbin 
--sysconfdir=/etc --datadir=/usr/share --localstatedir=/var/lib/mysql 
--infodir=/usr/info --includedir=/usr/include --mandir=/usr/man --with-embedded-server 
'--with-comment=Official MySQL RPM'


---------------------------------------------------------------------
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


Reply via email to