Click here to Skip to main content
15,898,538 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database?
Posted
Updated 8-Aug-11 22:42pm
v2

To do the following program, follow the learning steps:
1. learn how to create user in mysql command prompt.
2. learn how to set user privileges.
3. learn how to develop client application for mysql database server.
 
Share this answer
 
Start her GRANT Syntax[^] and for C/C++ MySql access go for MySql Connector/C[^].
 
Share this answer
 
write a SQL statement for your homework an execute it at the db.

Another way is a stored procedure on the db.

try your luck in learning ....
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900