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



write a c++ program to add a user to mysql.the user should be permitted to only "insert"..

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

write a c++ program to add a user to mysql.the user should be permitted to only "insert"..

Answer / shashwat044

pls reply asap

Is This Answer Correct ?    2 Yes 1 No

write a c++ program to add a user to mysql.the user should be permitted to only "insert"..

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

Post New Answer

More MySQL Interview Questions

How to create table with same structure of student table in mysql?

0 Answers  


What is Inner Joints and Outer Joints ? What is right outer joints,left outer joints,right inner joints , left inner joints ,

2 Answers   HP,


If you specify the data type as DECIMAL (5,2), what?s the range of values that can go in this table?

2 Answers  


What is current version of mysql?

0 Answers  


What is mysql common?

0 Answers  


How can we repair a MySQL table?

2 Answers   Infosys,


What is difference between mongodb and mysql?

0 Answers  


What is pdo in mysql?

0 Answers  


What is offset limit?

0 Answers  


How many values can the SET function of MySQL take?

2 Answers   Creative Informatics,


Is mysql an oracle product?

0 Answers  


What is the storage engine used for MySQL?

1 Answers  


Categories