# Link xampp mysql to Ruby's

**URL:** <https://www.ruby-forum.com/t/link-xampp-mysql-to-rubys/159170>\
**Category:** Ruby\
**Created:** [February 1, 2009, 9:03pm UTC](https://www.ruby-forum.com/t/link-xampp-mysql-to-rubys/159170 "2009-02-01T21:03:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![farfignugen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f17d59/32.png) [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Post date:** [February 1, 2009, 9:03pm UTC](https://www.ruby-forum.com/t/link-xampp-mysql-to-rubys/159170/1 "2009-02-01T21:03:50Z")

</div>

I have xampp running on my computer now and I have mysql working with  
that. Is there a way to link Ruby to use the xampp mysql settings so I  
don’t have to install mysql twice on my computer?

---

<div class="post-metadata">

**Author:** ![farfignugen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f17d59/32.png) [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Post date:** [February 1, 2009, 9:36pm UTC](https://www.ruby-forum.com/t/link-xampp-mysql-to-rubys/159170/2 "2009-02-01T21:36:13Z")

</div>

On Sun, Feb 1, 2009 at 12:03 PM, Chris G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I have xampp running on my computer now and I have mysql working with  
> that. Is there a way to link Ruby to use the xampp mysql settings so I  
> don’t have to install mysql twice on my computer?

I don’t know what “settings” you’re referring to, but you can certainly  
access the instance of MySQL on your system, regardless of how it  
was initially installed.

---

<div class="post-metadata">

**Author:** ![farfignugen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f17d59/32.png) [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Post date:** [February 1, 2009, 9:39pm UTC](https://www.ruby-forum.com/t/link-xampp-mysql-to-rubys/159170/3 "2009-02-01T21:39:25Z")

</div>

Hassan S. wrote:

> I don’t know what “settings” you’re referring to, but you can certainly  
> access the instance of MySQL on your system, regardless of how it  
> was initially installed.

how would you go about doing that.

---

<div class="post-metadata">

**Author:** ![farfignugen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f17d59/32.png) [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Post date:** [February 1, 2009, 9:49pm UTC](https://www.ruby-forum.com/t/link-xampp-mysql-to-rubys/159170/4 "2009-02-01T21:49:13Z")

</div>

On Sun, Feb 1, 2009 at 12:39 PM, Chris G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> how would you go about doing that.

How are you intending to use MySQL? From a stand-along Ruby  
program, from Rails, \_\_\_\_\_\_\_\_\_\_\_?

Regardless, you need to know the MySQL username and password,  
socket or port # to connect to, etc. – those are the same whether you  
connect from Ruby, Java, PHP, whatever.

---

<div class="post-metadata">

**Author:** ![farfignugen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f17d59/32.png) [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Post date:** [February 1, 2009, 9:50pm UTC](https://www.ruby-forum.com/t/link-xampp-mysql-to-rubys/159170/5 "2009-02-01T21:50:24Z")

</div>

Chris G. wrote:

> Hassan S. wrote:
> 
> > I don’t know what “settings” you’re referring to, but you can certainly  
> > access the instance of MySQL on your system, regardless of how it  
> > was initially installed.
> 
> how would you go about doing that.

You would create some settings file and ask the Ruby mysql handler to  
use those  
settings… Its just a matter of using the same settings. As long as the  
server  
address, username, pass, and so on match you should be able to access it  
from  
any language you want.

-Zac
