The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

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  
Old 01-25-2008, 01: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  
Old 01-27-2008, 01:40 AM
JLA JLA is offline
Developer
 
Join Date: Oct 2007
Posts: 227
Thanks: 1
Thanked 31 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  
Old 01-27-2008, 10: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,231
Thanks: 45
Thanked 202 Times in 162 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 10:29 AM.. Reason: iPhone typo
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4  
Old 07-07-2008, 01: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  
Old 07-07-2008, 11: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,231
Thanks: 45
Thanked 202 Times in 162 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  
Old 07-07-2008, 11: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,661
Thanks: 17
Thanked 112 Times in 85 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  
Old 07-08-2008, 01: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  
Old 01-05-2009, 04: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  
Old 01-08-2009, 03: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  
Old 06-22-2009, 09: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



Go to Top
ModMyI

All times are GMT -6. The time now is 12:48 PM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top