write a c++ program to add a user to mysql.the user should be
permitted to only "insert" into the given database
Answers were Sorted based on User's Feedback
Answer / riyas_isno
CREATE PROCEDURE createUser (OUT param1 INT)
BEGIN
CREATE USER 'riyaz'@'localhost' IDENTIFIED BY 'riyaz';
GRANT insert ON db1.* TO 'riyaz'@'localhost';
END
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / 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 |
How to create table with same structure of student table in mysql?
What is Inner Joints and Outer Joints ? What is right outer joints,left outer joints,right inner joints , left inner joints ,
If you specify the data type as DECIMAL (5,2), what?s the range of values that can go in this table?
What is current version of mysql?
What is mysql common?
How can we repair a MySQL table?
What is difference between mongodb and mysql?
What is pdo in mysql?
What is offset limit?
How many values can the SET function of MySQL take?
2 Answers Creative Informatics,
Is mysql an oracle product?
What is the storage engine used for MySQL?