Connecting MySQL C ++ Database

I'm not a DB expert, so I'm looking for advice for a web system I'm thinking of.

The general setup of the system I have is that it will have a web interface (possibly PHP) for login, etc., and some C ++ code running on the server does some processing. Both PHP and C ++ code need read / write access to the MySQL database.

So, (1) What is the best way to access / update a MySQL database using C ++?

(2) Are there any problems / things I should be aware of with a DB that has parallel access from both PHP and C ++. I'm kind of guessing DB is keeping an eye on all of this ...

Thank,

Lehane

+1


source to share


3 answers


The DB must take care of concurrent access. You can use MySQL ++ as a library to access mysql from C ++ code. I only know about its existence, with no experience of using it, so I cannot tell you about the usability.



+4


source


MySQL C-API is easy to use.



+1


source


Try QtSql .

By the way, the question is very similar to this one

0


source







All Articles