jam
2008-04-07 06:10:48 UTC
I am with godaddy, and i have mysql 5.0 phpadmin access.
I have created 1 database, the user for this database obviously has full access to the tables.
Ok now i use the above username/password/dbname details in db.php as follows, to give site visitors access to my database data via php pages(normal right!):
$DB_SERVER = "h50mysql53.secureserver.net";
$DB_USER = "userxxxx";
$DB_PASSWORD = "passwordxxx";
$DB_NAME = "userxxxx"; // same as user created by default by godaddy
$link = mysql_connect($DB_SERVER, $DB_USER, $DB_PASSWORD);
mysql_select_db($DB_NAME);
?>
Problem:
1. I want to revoke drop,delete,insert,update privileges from this user, so naughty visitors can't misbehave and mess about with my database as i have some that try.
Thing is i can't create another standalone user with restricted access, godaddy don't give root access in mysql either, and i can't revoke these privileges from the user that owns the database.
How can i restrict the privileges: drop,delete,insert,update in any other way?
Thanks in advance
Tovia Singer