GRANT ALL PRIVILEGES ON databasename.* TO user IDENTIFIED BY 'password';

http://www.mysql.com/doc/G/R/GRANT.html

Gurhan


-----Original Message-----
From: Dennis [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 9:52 AM
To: [EMAIL PROTECTED]
Subject: Every user can access the databases


I have tried almost everything and nothing works.

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.

Thanks in advance,

Dennis


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

Reply via email to