And don't forget to do a flush privileges right after.

Bhavin Vyas wrote:

>Are u doing a user@hostname or user@%? The hostname part is needed, % means
>from anywhere. A better way to write this to prevent any errors is enclosing
>user & host in single quotes as such: 'user'@'host'.
>
>Regards,
>Bhavin.
>----- Original Message -----
>From: "Michael Knauf/Niles" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, June 26, 2002 6:31 AM
>Subject: I can login to mysql as root but not as any other user...
>
>
>  
>
>>mysql is running on an i386 box with Red Hat Linux 7.0
>>
>>this works:
>>mysql -u root -p
>>
>>--it askes for the root password, and lets me into the mysql monitor. I
>>    
>>
>can
>  
>
>>create databases and tables, life seems good.
>>
>>than I try something like:
>>
>>Grant all on *.* to user identified by 'password';
>>
>>where user and password make sense. It seems to work. So, I logout "\q"
>>
>>and try
>>
>>mysql -u user -p
>>
>>and I get an access denied error.
>>
>>Whare am I going wrong?
>>
>>Michael
>>
>>
>>---------------------------------------------------------------------
>>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
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>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
>
>  
>

-- 
Ralf Narozny
Splendid Internet GmbH
Skandinaviendamm 212, 24109 Kiel, Germany
fon: +49 431 660 97 0, fax: +49 431 660 97 20
mailto:[EMAIL PROTECTED], http://www.splendid.de




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