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 is mysql_connect?

0 Answers  


How to extract a unit value from a date and time?

0 Answers  


Does facebook still use mysql?

0 Answers  


How do I get a list of table names in mysql?

0 Answers  


How big is a blob mysql?

0 Answers  






How to filter data from a mysql database table with php?

0 Answers  


How do I change the max connection in mysql?

0 Answers  


What is the command used to create a database using php and mysql?

0 Answers  


What is mysql gpl?

0 Answers  


What is bigint in mysql?

0 Answers  


Write a query to stop mysql in unix

0 Answers  


I want to start and stop mysql on windows? How do I do that?

0 Answers  


Categories