Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 132,630 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,034 people online right now. Registration is fast and FREE... Join Now!




How to synchronize data between C++ and Mysql

 
Reply to this topicStart new topic

How to synchronize data between C++ and Mysql, Plese, Help Me =~]

Feco
post 3 Oct, 2005 - 01:11 PM
Post #1


New D.I.C Head

*
Joined: 4 Sep, 2005
Posts: 5


My Contributions


Hi Guys, I am having problem to synchronize data between C++ and Mysql.
I had already read a lot of sites but I didn't find anything...

Please, if you know how to do it help me.


Thanks, Feco =D
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 3 Oct, 2005 - 01:22 PM
Post #2


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,176



Thanked 33 times

Dream Kudos: 25
My Contributions


Could you describe what you are hoping to achieve? Are you referring to a C++ application interacting with a MySql database, inserting/deleting/updating information into tables?
User is offlineProfile CardPM

Go to the top of the page

Feco
post 3 Oct, 2005 - 02:17 PM
Post #3


New D.I.C Head

*
Joined: 4 Sep, 2005
Posts: 5


My Contributions


I'm reading data from parallel port, after some tests I need to insert this data into mysql database to future reports.
It´s a simple database whit 3 types of data.

Hour, Total of electricity demand and price.

my msn is fecotrentini@hotmail.com, if you can help me by msn I will be glad.
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 3 Oct, 2005 - 02:47 PM
Post #4


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,176



Thanked 33 times

Dream Kudos: 25
My Contributions


Well, there are a few methods...the best is using ODBC connections...you can see an example of connecting to a MySQL db with C++ here . There is also the MySQL++ wrapper. You can also research the mysql.h library.

I apologize for not providing this information by msn, but we prefer to answer on the boards so that all members can benefit from any knowledge transfer.
User is offlineProfile CardPM

Go to the top of the page

Tomas
post 5 Sep, 2007 - 01:12 PM
Post #5


New D.I.C Head

Group Icon
Joined: 12 Jun, 2007
Posts: 34



Dream Kudos: 100
My Contributions


QUOTE(Amadeus @ 3 Oct, 2005 - 03:47 PM) *

Well, there are a few methods...the best is using ODBC connections...you can see an example of connecting to a MySQL db with C++ here . There is also the MySQL++ wrapper. You can also research the mysql.h library.

I apologize for not providing this information by msn, but we prefer to answer on the boards so that all members can benefit from any knowledge transfer.


Thanks for the advice. I am also trying to connect to a MySQL database from my C++ application
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 5 Sep, 2007 - 01:15 PM
Post #6


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,176



Thanked 33 times

Dream Kudos: 25
My Contributions


Check this one out:

http://www.sqlapi.com/

Much better than the previous posts, which are a few years old.
User is offlineProfile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/23/08 03:51AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month