MySQL Forums
Forum List  »  Connector/C++

Replication failed with Connector/C++
Posted by: lui lui
Date: July 26, 2009 11:13PM

Hi, everybody

I am trying to build Web Server with Apache 2.0, I have written some cgi in C++ with Connector/C++ 1.0.0 preview, and set MySQL Replication for backup, but i can't success completely. The Replication and cgi is fine, but my cgi has not produce any MySQL binary log, so Replication gets nothing.

above is my test code:
int main(void) {
connectDB();

Statement* stmt = con->createStatement();
stmt->execute("INSERT INTO nuuo.lui (lui) VALUES(1234)");
PreparedStatement *stmt3 = con->prepareStatement("INSERT INTO nuuo.lui (lui) VALUES(?)");
stmt3->setInt(0, 123);
stmt3->execute();

delete stmt;
delete stmt3;
retorn 0;
}

Anyone can help me how to fix it?

thx a lots

Options: ReplyQuote


Subject
Views
Written By
Posted
Replication failed with Connector/C++
3367
July 26, 2009 11:13PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.