# Mac MySQL issues

**URL:** <https://www.ruby-forum.com/t/mac-mysql-issues/134412>\
**Category:** Rails\
**Created:** [April 10, 2008, 4:45pm UTC](https://www.ruby-forum.com/t/mac-mysql-issues/134412 "2008-04-10T16:45:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9c0ed/32.png) [@mark](https://www.ruby-forum.com/u/mark)\
**Post date:** [April 10, 2008, 4:45pm UTC](https://www.ruby-forum.com/t/mac-mysql-issues/134412/1 "2008-04-10T16:45:59Z")

</div>

Hi all, I’m having a problem with accessing MySQL from RoR on Mac OS X  
Leopard.

Specifically when I try to create a scaffold, I get an access denied  
for user error, no matter what username and password I try to use.  
I’ve tried leaving it blank, and I’ve tried using my Mac admin  
password without any luck.

I installed MySQL using the Hivelogic guide, and I’ve been working  
through the Agile Web D. with Rails book (following their  
Depot store example) and now I am stuck!

Running MySQL from the terminal seems to work fine, it’s only through  
RoR that I have a problem. In fact the ‘create.sql’ script to set up  
the database runs without any errors, so I’m a bit confused as to  
what’s gone wrong now.

Any help would be much appreciated!

Thanks,

Mark

---

<div class="post-metadata">

**Author:** ![mark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9c0ed/32.png) [@mark](https://www.ruby-forum.com/u/mark)\
**Post date:** [April 10, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/mac-mysql-issues/134412/2 "2008-04-10T16:48:57Z")

</div>

If you haven’t set up your username and password for MySQL,  
your username is: root  
and your password is:

Yes. Don’t type anything in the password.

Here’s my example:

development:  
adapter: mysql  
database: my\_app\_name\_development  
username: root  
password:  
socket: /tmp/mysql.sock

---

<div class="post-metadata">

**Author:** ![mark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9c0ed/32.png) [@mark](https://www.ruby-forum.com/u/mark)\
**Post date:** [April 10, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/mac-mysql-issues/134412/3 "2008-04-10T16:54:15Z")

</div>

Aha, thanks very much! That must have been the only combination I  
hadn’t tried!

Thanks again,

Mark
