From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=HTML_MESSAGE autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 448BDBC37 for ; Mon, 17 Aug 2009 23:04:47 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AoUBAJ9iiUpX+G66mWdsb2JhbACCJTCYLwEBAQEBCAsKBxOpMIEjjzkBBYQZ X-IronPort-AV: E=Sophos;i="4.43,398,1246831200"; d="scan'208";a="31250020" Received: from web28507.mail.ukl.yahoo.com ([87.248.110.186]) by mail2-smtp-roc.national.inria.fr with SMTP; 17 Aug 2009 23:04:46 +0200 Received: (qmail 88957 invoked by uid 60001); 17 Aug 2009 21:04:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1250543086; bh=o8gg7R8Ad9Z22wsVXZ6yaxxY5J806VR9A8F/8Vus60Y=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=xRCar20pboyT0XuUFU7IpLNu4nNQlaOKG3D1c1/3jpWvRp4j3M6X7k6grpZJ77aGxNYZJMwRbx2omnmIP7rkHZTf+TIWv2qYCdOJTdSgNBzD9dTueekgN2TWV1tmsar3OfjVxvnj4lHa4Hf3H0uyXohrGf+3IWxbWr6nG9iIWk0= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=tPD+fnwLgTjgQDl1qQz8VQNZxvoRJ4hPYi7KLuJNEkf26a2AG7OW9ziLmSk5NN/v2xa3ufa7U8L01TGtReG4XInxDt6ce3BFzBR3lc/RdNxk9TTtTtXHwvFidUoMQ9mNg8Ra5V6KamVpwthG2aXPR+G1oCahqEEVjAF8xlo/AVs=; Message-ID: <493613.88575.qm@web28507.mail.ukl.yahoo.com> X-YMail-OSG: TQSkFdMVM1kg5rTBSPs0TeujdGiFUimWUio8WE.yPxvFfXb3OXByJjujWpU3d9AJwa8jCu7QusW02CmjpIVA_7b4MJU3eevnfbJXIpWMmZy43Pkgqtfoe2HcMnNzifoGNSEpgCEvTbeh3Hpkb7LjJmfrrZtzpfLkqAUNJW9nsqH892isBVrN2AaJDVxyaU4_X2IMKMd8yln0DgXHE9SvAJ2fDfz3I_5OGyfThwBAttsKLLU0RQciRDvhl.EMmv9.._PDtyo3rAoJTS0mruptdFIn7psMSMwDv53LUqq2lIo6I6ve4Xp1tzFjfgyzZmT4jQ_Q Received: from [129.13.186.3] by web28507.mail.ukl.yahoo.com via HTTP; Mon, 17 Aug 2009 21:04:46 GMT X-Mailer: YahooMailClassic/6.1.2 YahooMailWebService/0.7.338.2 Date: Mon, 17 Aug 2009 21:04:46 +0000 (GMT) From: tumenjargal tsagaan Subject: Connecting to Mysql using Ocaml To: caml-list@yquem.inria.fr MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-572593140-1250543086=:88575" X-Spam: no; 0.00; ocaml:01 ocaml:01 inserting:01 inserting:01 snippet:10 snippet:10 something:14 something:14 using:15 using:15 would:18 would:18 when:22 when:22 appreciated:23 X-Attachments: cset="utf-8" cset="utf-8" --0-572593140-1250543086=:88575 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi all, has someone with experience tell me how to access mysql database using ocam= l? Any help would be appreciated. It would be great when posting a small snippet for connecting a mysql datab= ase and inserting something. Thank you. Tumee. =0A=0A=0A --0-572593140-1250543086=:88575 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi all,

has someone with experience te= ll me how to access mysql database using ocaml?
Any help would be apprec= iated.

It would be great when posting a small snippet for connecting= a mysql database and inserting something.

Thank you.

Tumee.<= br>

=0A=0A=0A --0-572593140-1250543086=:88575-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id B8E67BC37 for ; Mon, 17 Aug 2009 23:19:36 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAF9miUrOe3NG/2dsb2JhbADVWIQZBYFN X-IronPort-AV: E=Sophos;i="4.43,398,1246831200"; d="scan'208";a="44773171" Received: from spoomusic.com ([206.123.115.70]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 17 Aug 2009 23:19:36 +0200 Received: (qmail 8943 invoked by uid 89); 17 Aug 2009 21:18:49 -0000 Received: from localhost (127.0.0.1) by 0 with ESMTPS (DHE-RSA-AES256-SHA encrypted); 17 Aug 2009 21:18:49 -0000 Date: Mon, 17 Aug 2009 14:18:49 -0700 (MST) From: Dave Benjamin X-X-Sender: ramen@spoomusic.com To: tumenjargal tsagaan Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Connecting to Mysql using Ocaml In-Reply-To: <493613.88575.qm@web28507.mail.ukl.yahoo.com> Message-ID: References: <493613.88575.qm@web28507.mail.ukl.yahoo.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam: no; 0.00; ocaml:01 ocaml:01 inserting:01 bindings:01 ocaml-mysql:01 phoenix:98 sourceforge:01 wrote:01 caml-list:01 benjamin:01 benjamin:01 debian:04 dave:09 dave:09 aug:10 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=AWL,SPF_SOFTFAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id B7A8EBC37 for ; Mon, 17 Aug 2009 23:32:05 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AngBALZoiUrBvsFKl2dsb2JhbACbBAEBAQEBCBUHujaEGQWCKQ X-IronPort-AV: E=Sophos;i="4.43,398,1246831200"; d="scan'208";a="44773380" Received: from dnsp.umh.ac.be (HELO hermes1.umh.ac.be) ([193.190.193.74]) by mail4-smtp-sop.national.inria.fr with ESMTP; 17 Aug 2009 23:32:05 +0200 Received: from poincare.swapping.umh.ac.be (poincare.swapping.umh.ac.be [10.102.100.13]) by hermes1.umh.ac.be (8.14.2/8.13.6) with ESMTP id n7HLQxLC618544; Mon, 17 Aug 2009 23:27:00 +0200 Received: from localhost ([127.0.0.1] ident=trch) by poincare.swapping.umh.ac.be with esmtp (Exim 4.69) (envelope-from ) id 1Md9ne-0007um-90; Mon, 17 Aug 2009 23:31:30 +0200 Date: Mon, 17 Aug 2009 23:31:30 +0200 (CEST) Message-Id: <20090817.233130.369086458103799534.Christophe.Troestler+ocaml@umons.ac.be> To: delgiika@yahoo.de Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Connecting to Mysql using Ocaml From: Christophe TROESTLER In-Reply-To: <493613.88575.qm@web28507.mail.ukl.yahoo.com> References: <493613.88575.qm@web28507.mail.ukl.yahoo.com> X-Face: #2fb%mPx>rRL@4ff~TVgZ"<[:,oL"`TUEGK/[8/qb58~C>jR(x4A+v/n)7BgpEtIph_neoLKJBq0JBY9:}8v|j Organization: University of Mons Return-Receipt-To: Christophe.Troestler@umons.ac.be Disposition-Notification-To: Christophe.Troestler@umons.ac.be X-Mailer: Mew version 6.2.51 on Emacs 23.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 193.190.193.76 X-Spam: no; 0.00; ocaml:01 christophe:01 troestler:01 christophe:01 troestler:01 ocaml:01 ocaml-mysql:01 inserting:01 tarball:01 cheers:01 2009:98 wrote:01 caml-list:01 aug:10 snippet:10 On Mon, 17 Aug 2009 21:04:46 +0000, tumenjargal tsagaan wrote: > > has someone with experience tell me how to access mysql database > using ocaml? Any help would be appreciated. Google is your friend: for "mysql ocaml" it reports as its first page http://raevnos.pennmush.org/code/ocaml-mysql/ > It would be great when posting a small snippet for connecting a > mysql database and inserting something. You will hopefully be fully satisfied that there is a demo in the tarball then! Cheers, C.