# Newbie question - Using RoR with mysql on leopard

**URL:** <https://www.ruby-forum.com/t/newbie-question-using-ror-with-mysql-on-leopard/147773>\
**Category:** Rails\
**Created:** [September 5, 2008, 9:00am UTC](https://www.ruby-forum.com/t/newbie-question-using-ror-with-mysql-on-leopard/147773 "2008-09-05T09:00:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 5, 2008, 9:00am UTC](https://www.ruby-forum.com/t/newbie-question-using-ror-with-mysql-on-leopard/147773/1 "2008-09-05T09:00:42Z")

</div>

Hi, I am completely new to RoR and I’m just going through the  
[lynda.com](http://lynda.com) tutorial to try and get me started. I have everything  
installed and running, the only problem is that the tutorial uses  
mysql and as I am sure you already know, leopard uses sql lite as  
standard.

I would ideally like to use mysql as well so I can follow the video  
without having to interpret what I need to change for sql lite. I have  
installed the mysql gem and I have mysql running but if I go to my app  
in the browser (the standard RoR page) and then the about your  
application bit, it says I am using sqlite3.

Does anyone know how I can get this working?

Sorry about the long post, just wanted to give as much info as  
possible. 🙂

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 5, 2008, 10:21am UTC](https://www.ruby-forum.com/t/newbie-question-using-ror-with-mysql-on-leopard/147773/2 "2008-09-05T10:21:01Z")

</div>

On Sep 5, 1:35 am, “removed\_email\_address@domain.invalid”  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> application bit, it says I am using sqlite3.
> 
> Does anyone know how I can get this working?

You need to change your database.yml to tell it to connect to mysql.  
If you haven’t gone very far you might find it easier to just generate  
a fresh application that is already setup to use mysql with rails -d  
mysql

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 5, 2008, 11:58am UTC](https://www.ruby-forum.com/t/newbie-question-using-ror-with-mysql-on-leopard/147773/3 "2008-09-05T11:58:41Z")

</div>

hi thanks for that, I tried makinga new application by putting this in  
the terminal “rails -d mysql test\_app” it created fine but when I  
start the server and go to [http://localhost:8888/](http://localhost:8888/) I get a page load  
error… Any idea what I can do to fix this? Maybe I did something  
wrong at install?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 5, 2008, 12:13pm UTC](https://www.ruby-forum.com/t/newbie-question-using-ror-with-mysql-on-leopard/147773/4 "2008-09-05T12:13:56Z")

</div>

On Sep 5, 11:57 am, “removed\_email\_address@domain.invalid”  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> hi thanks for that, I tried makinga new application by putting this in  
> the terminal “rails -d mysql test\_app” it created fine but when I  
> start the server and go tohttp://localhost:8888/I get a page load  
> error… Any idea what I can do to fix this? Maybe I did something  
> wrong at install?

Why port 8888 ? Did you start the server on that port ? If the server  
is dying then it should be screaming about something in it’s logs  
(which are echoed to the terminal if you’ve just done script/server)

Fred

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [September 5, 2008, 12:18pm UTC](https://www.ruby-forum.com/t/newbie-question-using-ror-with-mysql-on-leopard/147773/5 "2008-09-05T12:18:02Z")

</div>

Ha, Just realised that I was using the wrong port number _hangs head  
in shame_ I’m too used to using mamp!
