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

Write a command with which mysql table can be repaired

1 Answers  


How can you count the total number of records of any table?

1 Answers  


How do I create a new database in mysql?

1 Answers  


What is a join in mysql?

1 Answers  


What is append query?

1 Answers  


What is the difference between char and varchar in mysql?

1 Answers  


What are stored procedures and functions?

1 Answers  


How do I run mysql?

1 Answers  


What is session variable in mysql?

1 Answers  


How to display odd rows in student table in mysql?

1 Answers  


What is the default port number of mysql?

1 Answers  


What is the return type of mysqli_query?

1 Answers  


Categories