Click here to Skip to main content
15,893,722 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
Write a c/c++ program to add a user to MYSQl.The user should be permitted to only INSERT into the database.
Posted
Comments
Smithers-Jones 30-Oct-11 3:37am    
How about giving it a try yourself and coming back If you have an actual question? Lazy bum (tm).

1 solution

Did you even try googling[^]. MySQL++[^] is a C++ binding of the MySQL C API[^].

Failing that, you can use ODBC[^] and write your own C++ bindings for it.

When I was dealing with databases a while back, I went for the latter option as it is database independent, it will work with any database that has ODBC drivers (MySQL, Microsoft SQL, Firebird, Microsoft Excel, Microsoft Access, ...)

Since this sounds like homework I wont provide you any code. There is already enough of it out on the Internet anyway. Learn to use Google.
 
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