>Description:
The command

        GRANT ALL ON dbname.* TO larry@"%" IDENTIFIED BY 'larry123';
        FLUSH PRIVILEGES;

properly changes the mysql.user table.  However, if I subsequently
attempt to use the mysql client like this

        mysql -h <myhostname> -u larry -p dbname

and enter 'larry123' at the password prompt, I get an error:

        Access denied for user: 'larry@myhostname' (Using password: YES)

But this is wrong, it seems. If I look in the mysql.user table,
I find this line:

        % | larry | <encrypted password> | ...

suggesting that the correct information is there, but that
the wildcard '%' is not working.

>HOW-To-Repeat:
        See steps above.
>Fix:
        Explicitly identify the hostname; ie, do not use the wildcard.

>Submitter-Id:  <submitter ID>
>Originator:    Charlie Read
>Organization:  independent
>MySQL support: none
>Synopsis:      wildcard '%' for host in mysql.user table broken
>Severity:      non-critical
>Priority:      high
>Category:      mysql
>Class:         sw-bug
>Release:       mysql-3.23.54 (Official MySQL RPM)

>Environment:
        
System: Linux mukuju 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 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.3 2.96-110)
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 Aug 21 03:06 /lib/libc.so.6 -> libc-2.2.5.so
-rwxr-xr-x    1 root     root      1260480 Apr 15  2002 /lib/libc-2.2.5.so
-rw-r--r--    1 root     root      2310808 Apr 15  2002 /usr/lib/libc.a
-rw-r--r--    1 root     root          178 Apr 15  2002 /usr/lib/libc.so
Configure command: ./configure '--disable-shared' '--with-mysqld-ldflags=-all-static' 
'--with-client-ldflags=-all-static' '--without-berkeley-db' '--without-innodb' 
'--enable-assembler' '--enable-local-infile' '--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/share/info' '--includedir=/usr/include' '--mandir=/usr/share/man' 
'--with-comment=Official MySQL RPM' 'CC=gcc' 'CFLAGS=-O6 -fno-omit-frame-pointer 
-mpentium' 'CXXFLAGS=-O6 -fno-omit-frame-pointer               -felide-constructors 
-fno-exceptions -fno-rtti -mpentium' 'CXX=gcc'


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