Current location: Hot Scripts Forums » Programming Languages » PHP » granting mysql privleges in phpmyadmin


granting mysql privleges in phpmyadmin

Reply
  #1 (permalink)  
Old 01-04-04, 03:00 PM
Stahler Stahler is offline
New Member
 
Join Date: Jan 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
granting mysql privleges in phpmyadmin

Hi folks, I read in my php book that if you create a website and a mysql database connection string, you should limit the privleges that the user in the connection string has, for security reasons. The book I have only mentions how to do this using the MySQL client. Ive looked at phpmyadmin on my site host and there is no way to GRANT privleges through phpmyadmin (or am I wrong). Is there a way to do this using phpmyadmin? If there is no way, is it because there is no security risk or what?

TIA

Bill
Reply With Quote
  #2 (permalink)  
Old 01-04-04, 04:31 PM
blaw's Avatar
blaw blaw is offline
Junior Code Guru
 
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
Hello,

I don't use pMA a lot so I can't be sure of this, but if you are using your webhosting company's server, chances are that you do not have "add/edit user" kind of function provided by your host within pMA.

The following is a quote from Main Documentation of phpMyAdmin:

Quote:
Originally Posted by http://www.phpmyadmin.net/documentation/
NOTE: phpMyAdmin does not apply any special security methods to the MySQL database server. It is still the system administrator's job to grant permissions on the MySQL databases properly. phpMyAdmin's "Privileges" page can be used for this.
There's also some information regarding the privaleges in pMA in this doc, so if you are interested, you should read it.

Also, if you do not have shell access to your account, then how did you create your first username? If it's a control panel like CPanel, wasn't there any options (privaleges) that you can select upon creating a user?

I think it's best, if you are using a web hosting account, that you ask your hosting provider this question. Maybe they can give you additional username with less privaleges - or at least tell you how to create one.

Hope this helps.
__________________
Blavv =|
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP and MySQL ? rob2132 Hot Scripts Forum Questions, Suggestions and Feedback 4 08-29-08 02:22 AM
phpMyAdmin 2.2.6 & MySQL 4.0.1 mdhall PHP 8 10-30-03 08:44 PM
great product for dumping/recovering MySQL databases Dave Brown General Advertisements 1 10-03-03 07:40 AM
MySQL with PHP question. HELP for a newbie kenfused PHP 3 08-02-03 12:53 AM


All times are GMT -5. The time now is 07:55 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.