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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is constraints?

640


What is mysql ndb?

527


What is a tinyint in mysql?

499


What is a select query?

482


How to dump a table to a file with 'mysqldump'?

531






What is difference between mysql and mysql server?

479


Suppose you have to collect the first name, middle name and the last name of students from the below table. But, you observe that there few missing values either in the first name, middle name and the last name columns. How will you return the first non-null values?

476


what is the default port for mysql server? : Mysql dba

567


What is logs in mysql?

495


Can you tell how many values can set the function of mysql to consider?

529


What do you mean by % and _ in the LIKE statement?

550


What is indexing in mysql?

473


What is mysql server used for?

489


Are stored procedures precompiled?

523


How to define numeric 9(3) in db2 table without decimal point??

2406