 |

12-17-2005, 05:23 AM
|
|
WebProWorld New Member
|
|
Join Date: Feb 2005
Location: Brussels
Posts: 11
|
|
phpMyAdmin has no UPDATE, SELECT, INSERT, DELETE function
How do you write a query to add UPDATE, SELECT, INSERT, DELETE
I already tried:
GRANT UPDATE, SELECT, INSERT, DELETE to name_db
but this gives a synthax error message no 1064
Please can anybody help me? ElseI don't get any php script at work!
|

12-18-2005, 09:10 PM
|
 |
Administrator
|
|
Join Date: Jul 2004
Location: Omaha
Posts: 2,717
|
|
You need to...
You need to add in who can do these functions.
Code:
GRANT priv_type [(column_list)] [, priv_type [(column_list)]] ...
ON {tbl_name | * | *.* | db_name.*}
TO user [IDENTIFIED BY [PASSWORD] 'password']
[, user [IDENTIFIED BY [PASSWORD] 'password']] ...
[REQUIRE
NONE |
[{SSL| X509}]
[CIPHER 'cipher' [AND]]
[ISSUER 'issuer' [AND]]
[SUBJECT 'subject']]
[WITH with_option [with_option] ...]
http://dev.mysql.com/doc/refman/4.1/en/grant.html
Brian.
|

12-31-2005, 08:43 PM
|
|
WebProWorld New Member
|
|
Join Date: Feb 2005
Location: Brussels
Posts: 11
|
|
UPDATE, DELETE, SELECT, INSERT
Thanks for helping me, but you're as unclear as the manual. Sorry, but I don't understand those symbols, I always need examples to understand how a script works. Can you write the same code but while using names for tables, account and so on?
I don't know if you understand well the real problem. In a normal php account, in the phpMyadmin you can mark these 4 functions from a list of six. Well in my account there is no list at all. And because of that I should write a query.
|

01-03-2006, 12:56 PM
|
 |
Administrator
|
|
Join Date: Jul 2004
Location: Omaha
Posts: 2,717
|
|
Re: UPDATE, DELETE, SELECT, INSERT
Quote:
|
Originally Posted by Any Who
Thanks for helping me, but you're as unclear as the manual. Sorry, but I don't understand those symbols, I always need examples to understand how a script works. Can you write the same code but while using names for tables, account and so on?
I don't know if you understand well the real problem. In a normal php account, in the phpMyadmin you can mark these 4 functions from a list of six. Well in my account there is no list at all. And because of that I should write a query.
|
Code:
GRANT UPDATE, SELECT, INSERT, DELETE ON name_db TO anywho IDENTIFIED BY PASSWORD 'userpassword';
You have to tell it who can do stuff on that database, not just grant this to a database.
Brian.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|