Jump to content

Divide phpmyadmin..?

- - - - -

  • Please log in to reply
3 replies to this topic

#1
Guest_GerarD_91_*

Guest_GerarD_91_*
  • Guests
Hi there ppl. I come here for one short but maybe not that simple question.

I want to develop an online IDE for php, html, javascript, mysql, so i can use it on an intranet. The ide is not the problem, i'm on it. I'm gonna make like a login page and create users, that will also create a folder for that user to develop their pages... The problem comes now, i need to provie them the phpmyadmin service, so that they can create or upload database and stuff.. How do i make it possible to use to multiple users, without them seeing each others database?. I was thinking maybe there's a program to use like a hosting service... Any suggestions would be nice... Thanks..

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
Your first step would be to grant each new user rights to create or destroy a database, and that introduces the problem aforementioned. You will need to isolate what you are granting them permission on, and the most reasonable way is to restrict their access to a subset of databases, such as their name, and then a wildcard.

i.e.

CREATE USER 'alexander'@'localhost' IDENTIFIED BY 'abc_password';
grant all on `alexander\_%`.* to 'alexander'@`localhost`;

This would consequently only allow me to modify databases, such as alexander_wordpress, alexander_settings and not read or write others.

Having to check for collision on user names and database names, is paramount to prevent one user from accessing another (such as user! and user& where &! are stripped off, if that is what you are doing.)
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#3
Vaielab

Vaielab

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 547 posts
You have an options in the config files of phpmyadmin to do so.
You will create a username and say wich database he have access.
Alan Doyle ยป Configuring phpMyAdmin for multiple users you will find explications here

But you should also use Alexander method for more security

#4
Guest_GerarD_91_*

Guest_GerarD_91_*
  • Guests
Those are really good ideas... I guess i'll try both and see the one that comes better... Thanks for that fast reply :p




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users