I'm trying to complete an iPhone app. And for that I need to bring a database from MySQL to SQLIT. For this case I used some code like bellow -
MCPConnection * theConnec; MCPResult * theRes; // Start Connection String Wars NSString * dbURL = @ "XXXXXX"; NSString * userName = @ "XXXXXX"; NSString * pass = @ "XXXXXX"; // open connection to the database theConnec = [theConnec initToHost: Login with dbURL: Username Password: Passport using: 3306]; // NSLog (@ "The connection to the database was successful"); [Select the coconic DB: @ "XXXXXX"]; // {// NSLog (@ "found database"); //} // and // {// NSLog (@ "database not found"); //} theRes = [theConnec query string: @ "select Seahawk_tag *];; Get the number of rows; NSInteger numberOfRows = [theres numofRows]; NSLog (@" MySQL database query%% ", numberofroo); Return NSApplicationMain (argc, (const char **) argv); [coconic release];
But this code does not work properly. It has also been mentioned here that I have received cocoaaphmwork , Cocos 2d, openls framework, openal framework, apt write framework, mcpkte framework quart I have used some frameworks like framework. And finally I get an error message that CIColer.h is missing.
Freinds, if you know the solution or if you have any other code So help me
Are you asking how to choose a remote database or the former - How to export?
Voting a remote database and importing data should be Em To open the socket to the remote DB, execute the query and turn it off again.
Comments
Post a Comment