Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How to determine the location of the data directory?

950


How can you plan the logshipping before processing?

2324


Explain timestamp?

957


How can I create a database in mysql?

849


What are the technical specifications of mysql?

1148


How do we use % when performing a search query?

906


How are mysql timestamps seen to a user?

1005


What is the use of procedure in mysql?

927


How you will show all data from a table.

979


Is mysql relational?

903


How to use regular expression in pattern match conditions?

942


What is sql vs mysql?

1003


What is mysql sleep process?

1020


What is normalization and list the different types of normalization?

938


Why should I use mysql?

917