Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Talking to MySQL from C



Folks.

I am trying to write a very simple database client application in C which will connect to a MySQL server on OSXServer.

Seems like most people communicate with MySQL via PHP, but I basically want to make a very simple 'list' of database entries in C.

Multiple client stations would be able to add records and view records from different Macs, all sharing the one central MySQL server database. Sounds pretty simple, right ?

I am probably missing something totally obvious, but how does one actually communicate with a MySQL server ? Is it just 'chat' on a Socket ? If so, where can I find the socket protocol ?

I already use TCP sockets to communicate between my own apps on different machines.

Could anyone point me to some *really* simple C source code to connect to, and run a simple query on a remote MySQL Server ?

Thanks

Mark Gilbert.
--
email@hidden
Tel: +44 208 340 5677
fax: +44 870 055 7790
http://www.gallery.co.uk
New Product ! - Zen MetaCorder
Location Sound Field Recorder
http://www.metacorder.info
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.