# Ruby /mysql needed help asap

**URL:** <https://www.ruby-forum.com/t/ruby-mysql-needed-help-asap/172591>\
**Category:** Ruby\
**Created:** [July 23, 2009, 6:06pm UTC](https://www.ruby-forum.com/t/ruby-mysql-needed-help-asap/172591 "2009-07-23T18:06:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wrapster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/df705f/32.png) [@wrapster](https://www.ruby-forum.com/u/wrapster)\
**Post date:** [July 23, 2009, 6:06pm UTC](https://www.ruby-forum.com/t/ruby-mysql-needed-help-asap/172591/1 "2009-07-23T18:06:40Z")

</div>

Hi all,

I would like to know about the ruby/mysql module and how to use it…

Ive been at it trying to learn myself, but its been slow going… I  
essentially want to manage DB(create,delete,update,search and retrieve)  
through ruby and purely ruby only…

I havent come across the proper tutorials where in i can understand all  
the methods involved in query/processing of the DB…

Need some urgent help on this, my works have hit a dead end because of  
this…

Please help asap  
regards

---

<div class="post-metadata">

**Author:** ![wrapster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/df705f/32.png) [@wrapster](https://www.ruby-forum.com/u/wrapster)\
**Post date:** [July 23, 2009, 6:16pm UTC](https://www.ruby-forum.com/t/ruby-mysql-needed-help-asap/172591/2 "2009-07-23T18:16:31Z")

</div>

On Fri, Jul 24, 2009 at 01:06:42AM +0900, Wrapster Aol wrote:

> Hi all,
> 
> I would like to know about the ruby/mysql module and how to use it…
> 
> Ive been at it trying to learn myself, but its been slow going… I  
> essentially want to manage DB(create,delete,update,search and retrieve)  
> through ruby and purely ruby only…

This seems fairly helpful as an introduction to ruby/mysql module. It’s  
wrapped pretty simply around MySQL C API, so should mirror other  
languages like PHP or Perl:

[http://www.kitebird.com/articles/ruby-mysql.html](http://www.kitebird.com/articles/ruby-mysql.html)

I hope you find this link relevant.

- Kyle

---

<div class="post-metadata">

**Author:** ![wrapster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/df705f/32.png) [@wrapster](https://www.ruby-forum.com/u/wrapster)\
**Post date:** [July 23, 2009, 6:24pm UTC](https://www.ruby-forum.com/t/ruby-mysql-needed-help-asap/172591/3 "2009-07-23T18:24:18Z")

</div>

unknown wrote:

> On Fri, Jul 24, 2009 at 01:06:42AM +0900, Wrapster Aol wrote:
> 
> > Hi all,
> > 
> > I would like to know about the ruby/mysql module and how to use it…
> > 
> > Ive been at it trying to learn myself, but its been slow going… I  
> > essentially want to manage DB(create,delete,update,search and retrieve)  
> > through ruby and purely ruby only…
> 
> This seems fairly helpful as an introduction to ruby/mysql module. It’s  
> wrapped pretty simply around MySQL C API, so should mirror other  
> languages like PHP or Perl:
> 
> [http://www.kitebird.com/articles/ruby-mysql.html](http://www.kitebird.com/articles/ruby-mysql.html)
> 
> I hope you find this link relevant.
> 
> - Kyle

This is exactly what I’d referred earlier Kyle, The issue is want to use  
the built in methods described in the module…  
for eg, fetch\_row, select\_db… such stuff…

But where can i find details on these methods if not comprehensive at  
least a reference to the existence of such methods is sufficient… I’ll  
work on it and figure it out myself…

-wrapster

---

<div class="post-metadata">

**Author:** ![wrapster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/df705f/32.png) [@wrapster](https://www.ruby-forum.com/u/wrapster)\
**Post date:** [July 23, 2009, 6:34pm UTC](https://www.ruby-forum.com/t/ruby-mysql-needed-help-asap/172591/4 "2009-07-23T18:34:04Z")

</div>

On Fri, Jul 24, 2009 at 01:24:23AM +0900, Wrapster Aol wrote:

> > 
> 
> This is exactly what I’d referred earlier Kyle, The issue is want to use  
> the built in methods described in the module…  
> for eg, fetch\_row, select\_db… such stuff…
> 
> But where can i find details on these methods if not comprehensive at  
> least a reference to the existence of such methods is sufficient… I’ll  
> work on it and figure it out myself…
> 
> -wrapster

[MySQL/Ruby](http://www.tmtm.org/en/mysql/ruby/) seems to have all the methods and  
classes laid out, but a  
severe lack of decent examples. Sorry to be of little help, I can see  
why this is frusterating.

My approach would be to use irb to learn how to manipulate each object  
before beginning to write  
programs/scripts which use it.

- Kyle
