[snip] The problem is, I have a server with different MySQL databases from different people.
User 1 should not access database 2 and user 2 should not access database 1. What is the easiest way to prevent user 1 to access database 2. I can't get it right. [/snip] http://www.mysql.com/doc/G/R/GRANT.html GRANT priv_type [(column_list)] [, priv_type [(column_list)] ...] ON {tbl_name | * | *.* | db_name.*} TO user_name [IDENTIFIED BY [PASSWORD] 'password'] [, user_name [IDENTIFIED BY 'password'] ...] Notice the second line of the query "ON {tbl_name | * | *.* | db_name.*}", this is where you set permissions for a given database and/or table. Jay Blanchard --------------------------------------------------------------------- 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