WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Database Discussion Forum This is the place to find help resolving those nagging questions you have about implementing and using all kinds of databases. Need help writing a query? Need an opinion on Oracle? Post here!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-17-2005, 05:23 AM
WebProWorld New Member
 

Join Date: Feb 2005
Location: Brussels
Posts: 11
Any Who RepRank 0
Default 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!
__________________
welcome in our blog society
Reply With Quote
  #2 (permalink)  
Old 12-18-2005, 09:10 PM
brian.mark's Avatar
Administrator
 

Join Date: Jul 2004
Location: Omaha
Posts: 2,717
brian.mark RepRank 2brian.mark RepRank 2
Default 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.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies
Reply With Quote
  #3 (permalink)  
Old 12-31-2005, 08:43 PM
WebProWorld New Member
 

Join Date: Feb 2005
Location: Brussels
Posts: 11
Any Who RepRank 0
Default 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.
__________________
welcome in our blog society
Reply With Quote
  #4 (permalink)  
Old 01-03-2006, 12:56 PM
brian.mark's Avatar
Administrator
 

Join Date: Jul 2004
Location: Omaha
Posts: 2,717
brian.mark RepRank 2brian.mark RepRank 2
Default 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.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum
Tags: , , , , ,



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0