HomeStoreForumsWikiiPhone Native AppsiPhone Apps modmyifone Downloadsmodmyifone Links








Cell Phone Reception

Go Back   iPhone Forums at ModMyiFone.com - iPhone | iPod Touch, news, apps, themes. > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion
Register FAQ Members List READ THIS Today's Posts Mark Forums Read

iPhone / iPod Touch SDK | Development Discussion SDK questions. A place for iPhone developers to post code snippets, discuss creating iPhone apps, and any other iPhone developing.


Discuss AppStore Apps! | MMi Cydia Repo Download Stats

Get more out of ModMyiFone by joining our free community. By registering you get privileges to download files from our downloads section and you may also post your questions in our forums! It's fast, free, and easy!

2.0 Unlock|Jailbreak OS X / Windows | iPhone 3G Detailed Review w/Pics! | Developers - Port Your Apps to 2.0
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: 217
Thanks: 1
Thanked 22 Times in 21 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 1.1.3
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,100
Thanks: 33
Thanked 179 Times in 145 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.
__________________
Starlight Computer Wizardry
Pocket-sized Development

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 1.1.3
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,100
Thanks: 33
Thanked 179 Times in 145 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
__________________
Starlight Computer Wizardry
Pocket-sized Development
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,584
Thanks: 15
Thanked 85 Times in 68 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
Reply

  iPhone Forums at ModMyiFone.com - iPhone | iPod Touch, news, apps, themes. > 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

ModMyMoto.com - ModMyGPhone.com - ModMyiFone.com - Dedicated Server Hosting by SingleHop - iPhone Wallpapers - iPhone forums | iPod touch forums, news, themes, apps, games, unlock, jailbreak community - ModMyiFone.com RSS Feeds - Contact Us - Link to us - Archive - Privacy Statement - - Top
Copyright © 2007-08 by ModMy, LLC. All rights reserved. You may not copy anything on this site unless you link to the original.
All times are GMT -6. The time now is 07:43 PM. Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
ModMyiFone.com is an independent publication and has not been authorized, sponsored, or otherwise approved by Apple, Inc or Cisco Systems, Inc. The information contained on this site is for educational purposes only.
Forum skin by poetic_folly