I was reading about adding/managing users.

I understand hat the user table holds user information.

the example I will give is taken from the oreilly book.


insert into user (host, user, password, select_priv, insert_priv,
update_priv, delete_priv)
values ('%', 'bob', password('mypass'), 'Y', 'Y', 'Y', 'Y')
;

questions

1.) is the % a wildcard, and if so does this mean the user bob can connect
from any host ?
2.) the password function encrypts the password. If the password function is
missed out before the ('mypass') bit will it enter the password un-encrypted
? or will it just not work ?

thanks,

Matt.


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