Web Hosting Talk







View Full Version : MysQL and customers


RescueHst
08-20-2001, 12:25 AM
I am sure this has been discussed in here but I dodnt find anything through the search.

But anyways I am interested in hearing what people found was best to allowing customers, or other accounts on the Raq4i to use MySQL

I have gotten some scripts running that assist in creating databases but just seems a lot of work to do for a customer or client etc...?

any other methods?

Avanti
08-20-2001, 12:38 AM
Have a look at phpMyAdmin on freshmeat.

This lets you control your MySQL installation through a browser, including access authority, definition of new databases, tables, importing of text files into a table, etc

I have found phpMyAdmin very easy to set-up and so far have not needed to go back to the command line to do anything in MySQL since I installed it.

Cheers
Mark

ljprevo
08-20-2001, 09:20 AM
Do you have a link?

Chicken
08-20-2001, 10:06 AM
What exactly do you need? I have a tiny php script that creates the db, the user and sets pass quickly. Not sure if you want more of a phpmyadmin type of 'control the db' once it is created or create the whole thing in the first place?

ljprevo
08-20-2001, 10:15 AM
I just wanted to see if myphpadmin was worth it. I have a PHP script also that I enter the users's email, database name, password and username, it sets it up and email's them the info.

I got it at:
http://www.raqzone.com/tools.htm

The MySQL Account Creator!

In regard to editing the actual databases I use Webmin.

Avanti
08-20-2001, 06:03 PM
Originally posted by ljprevo
Do you have a link?
Have a look at http://freshmeat.net/projects/phpmyadmin/

ljprevo
08-20-2001, 06:29 PM
Originally posted by Avanti

Have a look at http://freshmeat.net/projects/phpmyadmin/

Thanks Avanti

RescueHst
08-21-2001, 11:35 AM
Great... I appreciate all the help... phpadmin script is great, as well as the one that ljprevo listed....

However now I have a customer stating that he can add, change and delete other databases on the server?

What can I do to stop this?

NightHawk
08-21-2001, 11:38 AM
Originally posted by ljprevo
I just wanted to see if myphpadmin was worth it. I have a PHP script also that I enter the users's email, database name, password and username, it sets it up and email's them the info.

I got it at:
http://www.raqzone.com/tools.htm

The MySQL Account Creator!

In regard to editing the actual databases I use Webmin.

AWESOME!!!! I love this littel script!!

now, can anybody tell me how to setup phpmyadmin to let the user of the newly created DB use it???

Thanks,

NewonNet
08-21-2001, 12:58 PM
Quite simple to install. Just follow the included instruction.

I just had to set one variable in php.ini I think it was the magic_quote thing.

afriq
08-21-2001, 12:59 PM
Originally posted by k9brian

However now I have a customer stating that he can add, change and delete other databases on the server?

What can I do to stop this?

You need to edit the config file supplied with phpMyAdmin - if you don't specify the database, the user will be able to see all other databases.

Changes are that you gave a copy of the config file which contained the root user id, with no database supplied. Make sure that his user id is used, and that his database is specified ... The phpMyAdmin documentation is quite clear on this.

rgrds,

Johan

NightHawk
08-21-2001, 01:18 PM
Originally posted by afriq


You need to edit the config file supplied with phpMyAdmin - if you don't specify the database, the user will be able to see all other databases.

Changes are that you gave a copy of the config file which contained the root user id, with no database supplied. Make sure that his user id is used, and that his database is specified ... The phpMyAdmin documentation is quite clear on this.

rgrds,

Johan

Thanks I was thinking about doing it that way...but that means that I have to give each customer thier own copy of phpmyadmin....

can I use the advance authentication in phpmyadmin to let more than one user log into it and access only thier database?

Sorry if I wasn't clear the first time,

afriq
08-21-2001, 01:32 PM
Try the following article ... central copy of phpMyAdmin for multiple users (http://articles.areontheweb.com/phpMyAdmin/)

I haven't done it myself yet - but this should point you in the right direction ...

The Prohacker
08-21-2001, 01:40 PM
That is possibly the ugliest page I've ever seen, I have a premodified version of phpMyAdmin that does the same thing if you want me to upload it, you can have it..

afriq
08-21-2001, 01:44 PM
Originally posted by The Prohacker
That is possibly the ugliest page I've ever seen, I have a premodified version of phpMyAdmin that does the same thing if you want me to upload it, you can have it..

What's keeping you ;-)

The Prohacker
08-21-2001, 01:49 PM
www.virix.com.kg/phpMyAdmin.zip

Have at it, you shouldn't have to change anything in the config.inc.php... If you enter a wrong pw and user, it will show as line errors...

afriq
08-21-2001, 01:53 PM
Originally posted by The Prohacker
Have a go at it, you shouldn't have to change anything in the config.inc.php... If you enter a wrong pw and user, it will show as line errors... [/B]

thanks - will give it a try ...

allera
08-21-2001, 02:02 PM
Here is the quick and dirty low-down for a single multiple-user installation of phpmyadmin:

(This of course assumes that phpmyadmin already works fine for root. If it doesn't, phpmyadmin isn't even set up, so read its INSTALL file.)

- Log in as root
- Access the 'mysql' database on the left, and click 'user' table
- Find and click "INSERT". It's kind of hiding, but it's there. If you can't find it, click "BROWSE" and then "INSERT NEW ROW."
- Enter the hostname (probably "localhost")
- Enter the username the database will be accessed as.
- For the Password field, select PASSWORD from the drop down box, and then type in the password to be used to access the database.
- Click Save.
- Click the "db" table of the "mysql" database.
- Click "INSERT" again, or "BROWSE" and then "INSERT NEW ROW."
- Enter the hostname (probably "localhost").
- Enter the database name.
- Enter the username that will access the database.
- Click "Yes" or "Y" for all the permissions (unless this user is specifically not allowed certain permissions -- if you aren't sure, select them all).
- Click Save.
- Click on "HOME" at the upper left corner.
- Create the new database.
- Log into your shell and run "mysqladmin -u root -p reload" and type in the password for root. This will make mysql notice the new user. This step is only required when adding a new user.
- Log out of phpmyadmin as root and try to log in as the new user you just created. If all went well, the login will succeed and the new user has access to his/her database only.

If that doesn't work, RTFM. :) It's quite tricky to get at first, but after doing it 50 times, it kind of comes natural. I hope I didn't miss anything!

Edited grammar, typing too fast today...

anna
08-23-2001, 06:11 PM
Besides phpMyAdmin, there is a product called "Netbuilder" that I found out about recently. It seems to be more sophisticated, and more user-friendly, than phpMyAdmin, but it is not free (I guess you can't have everything :) ).

I'm not sure how advanced of an offering you wanted, but if phpMyAdmin is not enough, or too difficult for your customers, Netbuilder might be a solution.

I found it at www.vansam.com.