web hosting line
1.866.605.2484

Web hosting

Go Back   Web Hosting Forum - Web hosting discussion at SiteGround.com > Popular Software > Other Software and Applications

Reply
 
Thread Tools Display Modes
  #1  
Old 06-01-2006, 05:34 AM
geologic geologic is offline
Junior Member
 
Join Date: Apr 2006
Posts: 4
Thumbs up About access to Mysql

Hello,
my question is easy...

I have a user (admin) in my website, and i have several MySql Databases. I want to give access to this user to "one" of this databases, but not to the others.

Can I install a web-based script writen in PHP to give access only to this DB in my server?

I don't want to give him the admin login and password to my cpanel, only a access to modify the database...

Thanks
Reply With Quote
  #2  
Old 06-02-2006, 11:46 AM
kenny's Avatar
kenny kenny is offline
Senior Member
 
Join Date: Jun 2005
Posts: 134
Default That is easy :)

Not only can you restrict access for a user to a specific database, you can also restrict the operations this user is allowed to perform on the database, and the hosts that they are allowed to connect from.

To allow someone access to a specific database, go to cPanel -> MySQL Databases and create a new database user. Once this is ready, locate the two drop down menus that allow you to grant specific privileges to the user, for the database. The form is self-explanatory, so I will not go into details. You can read more on this here:

http://www.cpanel.net/docs/cpanel/

To allow your database users to remotely connect to your databases, add the remote IP on the Allowed Hosts list, or simply add '%'. The latter is not very secure though, since connections to the database will be allowed from any host.
__________________
Pick a different route.
Reply With Quote
  #3  
Old 06-07-2006, 05:06 AM
geologic geologic is offline
Junior Member
 
Join Date: Apr 2006
Posts: 4
Default

Ok, perfect. but...
Can i install a, p.e. PHPMYADMIN or other similar software in a subdomain in my site to give access to my user?

Something similar to this:

phpmyadmin.domain.com...

Thanks
Reply With Quote
  #4  
Old 06-08-2006, 11:24 AM
kenny's Avatar
kenny kenny is offline
Senior Member
 
Join Date: Jun 2005
Posts: 134
Default

Sure, you can do this. This phpMyAdmin installation will be more limited in terms of funcionality (max execution time is set to 30 seconds for the php that apache uses).

Also, make sure you DO NOT put any login credentials for MySQL in the configuration file. Have your user log in every time
__________________
Pick a different route.
Reply With Quote
Reply

Thread Tools
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 On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:18 PM.

Copyright © SiteGround.com Inc