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

What are the benefits of mysql?

0 Answers  


What are the differences between binary and varbinary?

0 Answers  


How to write optimized query in mysql?

0 Answers  


How do I copy a table in mysql workbench?

0 Answers  


What is deterministic in mysql?

0 Answers  






How to create table show example

0 Answers  


List the different types of normalization?

0 Answers  


how to take mysql database backup?

0 Answers  


What is procedural api?

0 Answers  


How to change a password for an existing user via mysqladmin?

0 Answers  


What are string data types?

0 Answers  


How do I declare a variable in mysql?

0 Answers  


Categories