The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

2.2 Unlock / Jailbreak OS X | Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-25-2008, 12:45 AM
Developer
 
Join Date: Sep 2007
Posts: 100
Thanks: 0
Thanked 5 Times in 5 Posts
objective-c with remote MySQL server

Hi,
anyone has any idea how i can use objective-c to connect to a remote mysql server?
it can be either direct or indirect through a script...
i want to make an app that sync with a remote mysql database... but i dunno where to start looking
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2 (permalink)  
Old 01-27-2008, 12:40 AM
JLA JLA is offline
Developer
 
Join Date: Oct 2007
Posts: 227
Thanks: 1
Thanked 29 Times in 24 Posts

Quote:
Originally Posted by peeInMyPantz View Post
Hi,
anyone has any idea how i can use objective-c to connect to a remote mysql server?
it can be either direct or indirect through a script...
i want to make an app that sync with a remote mysql database... but i dunno where to start looking
Do the libraries that allow Notes to save to local SQL not allow remote? Not sure what they are, but you could probably browse framework headers on Erica Sadun's site and track it down.
If not, surely there is some sort of SQL stuff available in C/C++/ObjC.

If not, you might want to look into Java via JamVM, on Jay Freeman's repository. I believe it has an SQL library available for it.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3 (permalink)  
Old 01-27-2008, 09:28 AM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 2.2.0
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,206
Thanks: 43
Thanked 197 Times in 158 Posts

The iPhone's built-in SQL is sqlite, not MySQL.

Sqlite is a local embedded SQL that doesn't use a separate engine process.

You will need a MySQL client library conpiled for the iPhone to link against.

Last edited by NetMage; 01-27-2008 at 09:29 AM.. Reason: iPhone typo
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4 (permalink)  
Old 07-07-2008, 12:37 AM
What's Jailbreak?
 
Join Date: Jul 2008
Device + Firmware: iPhone
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
hmmm

Quote:
Originally Posted by NetMage View Post
The iPhone's built-in SQL is sqlite, not MySQL.

Sqlite is a local embedded SQL that doesn't use a separate engine process.

You will need a MySQL client library conpiled for the iPhone to link against.
Instead of it being a library wouldent it be called a framework?
Because I have found a cocoa mysql framework but right now I can't get it to work when compiling to an iPhone app.
Or am I completley mistaken?

G
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5 (permalink)  
Old 07-07-2008, 10:15 PM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 2.2.0
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,206
Thanks: 43
Thanked 197 Times in 158 Posts

The fourth time I have tried to post this *sigh* isn't the Internet wonderful...

Binary (even universal binaries) for OS X are not compatible with the iPhone. You will need to get the source for the MySQL client library and compile it yourself.

Unfortunately, MySQL doesn't appear to support a Cygwin port so that may make compiling with the toolchain difficult. Even more unfortunately, the source for the client is not cleanly separated from the server, but if you are using the SDK, compiling for OS X would probably give you a good starting point.

Here is an article that may help:
MySQL on Mac OS X
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #6 (permalink)  
Old 07-07-2008, 10:43 PM
JedixJarf's Avatar
Livin the iPhone Life
 
Join Date: Jun 2007
Device + Firmware: iPhone/8gb/1.1.4
Operating System: OS X Leopard
Posts: 1,624
Thanks: 15
Thanked 102 Times in 79 Posts
Send a message via Skype™ to JedixJarf

Can you just make a remote sqllite database to query?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #7 (permalink)  
Old 07-08-2008, 12:24 PM
What's Jailbreak?
 
Join Date: Jul 2008
Device + Firmware: iPhone
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
hmmm

Quote:
Originally Posted by NetMage View Post
The fourth time I have tried to post this *sigh* isn't the Internet wonderful...

Binary (even universal binaries) for OS X are not compatible with the iPhone. You will need to get the source for the MySQL client library and compile it yourself.

Unfortunately, MySQL doesn't appear to support a Cygwin port so that may make compiling with the toolchain difficult. Even more unfortunately, the source for the client is not cleanly separated from the server, but if you are using the SDK, compiling for OS X would probably give you a good starting point.

Here is an article that may help:
MySQL on Mac OS X

I have found source for a Cocoa MySQL framework/library. It compiles correctly, but when the iPhone simulator tries to run it, it completely crashes and needs to send a report. I have already sent an email to support, but they don't exists.

So what about this as a starting point, if you download it look for a framework called MCPKit_bundled.framework. That is the one you need.

SourceForge.net: Downloading ...
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #8 (permalink)  
Old 01-05-2009, 03:14 PM
What's Jailbreak?
 
Join Date: Jul 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
iPhone client for remote MySQL servers on appstore now

I was also needing an iPhone/Touch client to access my inventory database built on MySQL. I found Flipper on the appStore. You can connect to multiple databases, write multi-line queries and a bunch of other stuff. It's well worth the 99 cents.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #9 (permalink)  
Old 01-08-2009, 02:54 AM
What's Jailbreak?
 
Join Date: Jan 2009
Device + Firmware: iPhone 3G 16GB Black, OS 2.2
Operating System: MacBook Pro 17"
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
libmysqlclient.a, file is not of required architecture

Quote:
Originally Posted by gregcaulder View Post
I have found source for a Cocoa MySQL framework/library. It compiles correctly, but when the iPhone simulator tries to run it, it completely crashes and needs to send a report. I have already sent an email to support, but they don't exists.

So what about this as a starting point, if you download it look for a framework called MCPKit_bundled.framework. That is the one you need.

SourceForge.net: Downloading ...
Hi,
me too I am trying to implement mysql in my app for iPhone 2.2.
I have downloaded the mysql source from MySQL 5.1 Source Downloads
then I have properly compiled it with terminal, but when I get the resulting static lib libmysqlclient.a and link it to my XCode project-release-iphone, I get an error when compiling:
ld warning: in Libs/iPhone/libmysqlclient.a, file is not of required architecture.
I have compiled the sources with these 3 commands in terminal

./configure --prefix=/usr/local --enable-cross-compile --host=arm-apple-darwin9.6.0 --target=arm-apple-darwin9.6.0 --with-machine-type=arm

make

sudo make install

Then I took the library libmysqlclient. from /usr/local/mysql/lib
My big question is: how to set the ./configure text line in Terminal in order to properly compile the mysql source for the iPhone 2.2?
Any pointer would be greatly welcome. Thank you.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #10 (permalink)  
Old 06-22-2009, 08:17 AM
What's Jailbreak?
 
Join Date: Jun 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
MySQL Framework

Try this:

http://www.eval-art.com/2009/06/22/m...rk-for-iphone/

Ken
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


Go to Top
ModMyI

All times are GMT -6. The time now is 05:23 PM. Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 | Dedicated Server Hosting by SingleHop | Copyright © 2007-09 by ModMy, LLC. All rights reserved.

RSS / Contact Us / / ModMyi Home / Archive / Privacy Statement / Top


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408