Version française
Home     About     Download     Resources     Contact us    
Browse thread
Connecting to Mysql using Ocaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Dave Benjamin <dave@r...>
Subject: Re: [Caml-list] Connecting to Mysql using Ocaml
On Mon, 17 Aug 2009, tumenjargal tsagaan wrote:

> has someone with experience tell me how to access mysql database using
> ocaml?
> Any help would be appreciated.
> 
> It would be great when posting a small snippet for connecting a mysql
> database and inserting something.

See the second half of this example (dbusers):
http://pleac.sourceforge.net/pleac_ocaml/dbaccess.html#AEN784

You can get the MySQL bindings here:
http://raevnos.pennmush.org/code/ocaml-mysql/

Or, if you're using Debian or Fedora, there should be a package available.

-- 
.. Dave Benjamin - Software Developer - Phoenix, Arizona
.. http://ramenlabs.com | http://twitter.com/ramenlabs