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
Is mysql a nosql database?
What does mysql flush privileges do?
How do I create a new database in mysql?
What is bigint in mysql?
What are numeric data types?
How many primary keys can be there in a table?
Is there a free mysql?
What is a tinyint in mysql?
Is mysql free for enterprise?
What is difference between oracle sql and mysql?
What is database engine in mysql?
What is localhost in mysql?
What is trigger in mysql with example?
How do I show users in mysql?
How many columns can a mysql table have?