|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
How can I access to MySQL from C or C++ in my Linux platform?
If you can, show me also some example code. |
|
#2
|
|||
|
|||
|
Check out Paul Dubois' book 'MySQL' (New Riders Professional Library ISBN# 0-7357-0921-1) - it contains a whole chapter on the MySQL C API and should give you more than enough information to get started.
|
|
#3
|
|||
|
|||
|
Well theres the c API and if u want to use c++ then theres 2 others API i think, one of which is mysql++ (more like wrapping up the c API in classes i guess).
For sample code, just use the command "info" in linux and if u installed mysql correctly there will be an info file u can look at, including some sample code for the API, and of course the whole API description. |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > How can I access to MySQL from C or C++ ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|