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
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 |
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 |
what is constraints? Also explain the different types of constraints?
How do I assign a variable in mysql?
What is mysql uuid?
How can we find the number of rows in a table using MySQL?
How to get current MySQL version?
What is the difference between the LIKE and REGEXP operators?
How can you create and drop view in mysql?
How many rows can mysql hold?
How do I select a database in mysql?
What are the 5 r's of managing behaviors?
Explain advantages of MyISAM over InnoDB?
why we are join a tow table
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)