If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > User managment and phpMyAdmin

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-16-04, 21:41
aweraw aweraw is offline
Registered User
 
Join Date: Sep 2004
Posts: 1
User managment and phpMyAdmin

Hi,

I've have a MySQL server that is used in conjunction with a PHP enabled web-server, and ther are several users on the system.

In the past I've used the following SQL to create databases and users:

> CREATE DATABASE something;
> GRANT ALL ON something.* TO someone@localhost IDENTIFIED BY 'password';

I've recently realized that this is less than optimal, because in
phpmyadmin it allows each user to see all the other databases on the
system, instead of just the ones they have access to. I've decided
that I will change the GRANT command as such:

> GRANT ALL PRIVILEGES ON something.* TO someone@localhost IDENTIFIED BY 'password';

My problem is, I've already created a bunch of users with the older query, and I need to know what I must change in order to restrict these user to only the databases they have access to. Is there a way to do this without deleting each user and recreating them using the improved query string? Say, issuing an UPDATE command?

Thanks in advance.

Aidan
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On