Ask a Question related to Ruby, Design and Development.

  1. #1

    Default mysql and ruby 1.8

    Greetings, everyone.

    Does anybody have the ingredients at hand to get a working
    connection between Ruby 1.8 and (MySQL and PostgreSQL) on
    a Windows XP box?

    Thanks,
    s.
    Stefan Schmiedl Guest

  2. Similar Questions and Discussions

    1. Self compiled ruby (cygwin) + ruby-dbi + mysql...stuck.
      I'm trying to get a self-compiled ruby under cygwin to work with the binary Windows distribution of mysql; either via ruby-mysql or dbi/dbd. I...
    2. mysql-ruby 1.4.5 bug?
      Hi, I am using mysql 4.0.15 on redhat 9.0, compiled ruby 1.80,compiled mysql-ruby 1.4.5 and tested it with the following result: ...
    3. ruby-mysql-0.2.1 and DBI
      Has anyone tried to interface ruby-mysql-0.2.1 with DBI with Ruby1.8? What is involved? Thanks!
    4. os x / mysql : install 1.8 : ruby = nil
      I'm trying to install ruby/eruby and mysql to learn ruby for web stuff on os x 10.2 At some point, i think while installing,...
    5. Problems with the Ruby MySQL Interface 2.4.4a and Ruby 1.8.0 on OS X
      Hola. The Ruby MySQL Interface 2.4.4a package compiles fine with Ruby 1.8.0 on the OS X 10.2.6 I'm running, but as soon as I try to run the test...
  3. #2

    Default Re: mysql and ruby 1.8

    On Mon, 17 Nov 2003, Stefan Schmiedl wrote:
    > Does anybody have the ingredients at hand to get a working
    > connection between Ruby 1.8 and (MySQL and PostgreSQL) on
    > a Windows XP box?
    Install Linux? :-)

    Actually, I suggest you look at the ruby-dbi package.

    -- Matt
    Boredom isn't the root of _all_ evil, but it tries.


    Matt Lawrence Guest

  4. #3

    Default Re: mysql and ruby 1.8

    --Next_1069059200---0-202.54.124.152-28271
    Content-type: text/plain;
    charset=iso-8859-1
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline

    You may try this. =0A1. You have to connect to Mysql with dbh=0A2. Then pre=
    pare, execute and fetch=0A=0AFollowing is a method from our project in the =
    PHED department (Govt. of West Bengal, India) =0A=0Adef take_blockname #MET=
    HOD FOR TAKE BLOCK NAME FROM THE TABLE BLOCK=0A dbh =3D DBI.connect($va=
    rDataBase,$varUser,$varPass)=0A=0A #dbh =3D DBI.connect('dbi:Mysql:PHE1:=
    100.100.100.1','test','')=0A sql =3D "SELECT block_name FROM BLOCK where=
    dcode =3D '#{$blockDCode}';"=0A #print sql=0A dbh.prepare(sql)=0A t=
    b =3D dbh.execute(sql)=0A str =3D tb.fetch()=0A get_block =3D str.to_a=
    =0A =0A while(str!=3Dnil)=0A str =3D tb.fetch()=0A get_block<<str.to_=
    a=0A end =0A dbh.disconnect =0A #print get_block=0A $cmbBlockBName.e=
    ntries =3D get_block #SENDING BLOCK NAMES TO THE COMBO BOX=0A =0A=0Aend #=
    ENDING METHOD FOR TAKING BLOCK NAMES=0A=0AOn Mon, 17 Nov 2003 Matt Lawrence=
    wrote :=0A>On Mon, 17 Nov 2003, Stefan Schmiedl wrote:=0A>=0A> > Does anyb=
    ody have the ingredients at hand to get a working=0A> > connection between =
    Ruby 1.8 and (MySQL and PostgreSQL) on=0A> > a Windows XP box?=0A>=0A>Insta=
    ll Linux? :-)=0A>=0A>Actually, I suggest you look at the ruby-dbi package.=
    =0A>=0A>-- Matt=0A>Boredom isn't the root of _all_ evil, but it tries.=0A>=
    =0A>=0A
    --Next_1069059200---0-202.54.124.152-28271--

    Sabyasachi Mustafi Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139