7 messages in com.mysql.lists.win32Re: restrict a user to access only on...
FromSent OnAttachments
Tata Respecia23 Sep 2004 23:43 
Jonathan G. Lampe24 Sep 2004 07:39 
Tata Respecia24 Sep 2004 17:09 
Tata Respecia24 Sep 2004 17:15 
Armando24 Sep 2004 18:27 
Tata Respecia24 Sep 2004 20:59 
Armando25 Sep 2004 10:51 
Subject:Re: restrict a user to access only one database
From:Tata Respecia (tata@yahoo.com)
Date:09/24/2004 05:15:09 PM
List:com.mysql.lists.win32

sorry replace "userx' instead of "php". actually i used userx instead of the actual php. but i started the post using userx.

Tata Respecia <tata@yahoo.com> wrote: I made the grants thru 3rd party SQLyog but didnt get the desired result. i also
tried using mysql prompt but still the same.

however i remember i just copied dbx database using windows simple explorer
copy/paste from my old server harddisk to this new one. I suspect this is the
reason. if this is so, how can i find some remedy?

mysql> select host,user from user where user='php'; +------+----------+ | host | user | +------+----------+ | % | userx | +------+----------+ 1 row in set (0.00 sec) mysql> select host,db,user from db where user='php'; +------+------+------+ | host | db | user | +------+------+------+ | % | dbx | php | +------+----+------+ 1 row in set (0.01 sec)

"Jonathan G. Lampe" wrote:Hello Tata,

It would probably help if you: - Posted the exact commands you are using to grant access to "userx" - Posted the results from your "mysql" database using these two queries: mysql> select host,user from user; mysql> select host,db,user from db;

-jgl

logged in as root, i added a new user called userx with privileges on database dbx. my problem is userx can still access other databases in my server. im using the ff server in winxp: