write a c++ program to add a user to mysql.the user should be
permitted to only "insert" into the given database
Answer Posted / riyas_isno
CREATE PROCEDURE createUser (OUT param1 INT)
BEGIN
CREATE USER 'sonu'@'localhost' IDENTIFIED BY 'riyaz';
GRANT insert ON db1.* TO 'riyaz'@'localhost';
END
hope this will be the answer ....try it......
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
how to dump all databases for backup. Backup file is sql commands to recreate all db's.
How do I exit mysql?
What is prepared statement in mysql?
Explain the storage engines in mysql?
What are the indexes in mysql?
What is mysql ndb?
can you elaborate on blob and text in mysql? : Mysql dba
How to return query output in xml format?
how to display nth highest salary from a table in a mysql query? : Mysql dba
Can you tell the difference between ereg_replace() and eregi_replace()?
What is the purpose of using ifnull() function?
Is mysql free for commercial use?
what is database black box testing? : Mysql dba
What is data type for image in mysql?
What is mysql and how it works?