# MySql as database in Leopard --- Will not rake

**URL:** <https://www.ruby-forum.com/t/mysql-as-database-in-leopard-will-not-rake/170694>\
**Category:** Rails\
**Created:** [June 21, 2009, 11:23am UTC](https://www.ruby-forum.com/t/mysql-as-database-in-leopard-will-not-rake/170694 "2009-06-21T11:23:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![evandrake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e9c0ed/32.png) [@evandrake](https://www.ruby-forum.com/u/evandrake)\
**Post date:** [June 21, 2009, 11:23am UTC](https://www.ruby-forum.com/t/mysql-as-database-in-leopard-will-not-rake/170694/1 "2009-06-21T11:23:45Z")

</div>

I am trying to create a new application on Mac OSX Leopard with MySql  
instead of Sqlite3, and I am having loads of trouble. I have  
installed mysql and I can connect properly through mysql -u root -p.  
I have also installed the MySQL C bindings for Ruby through: sudo env  
ARCHFLAGS="-arch i386" gem install mysql – --with-mysql-config=/usr/  
local/mysql/bin/mysql\_config.

However, when I crate a new rails application with:

rails -d mysql myapp

And then I run rake db:migrate. I get:

The bundled mysql.rb driver has been removed from Rails 2.2. Please  
install the mysql gem and try again: gem install mysql

I have already installed the gem as outlined above, and it is still  
not working. Am I missing a configuration change somewhere? My  
database.yml file is set properly … cannot figure this out for the  
life of me. Somebody please help!

---

<div class="post-metadata">

**Author:** ![evandrake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e9c0ed/32.png) [@evandrake](https://www.ruby-forum.com/u/evandrake)\
**Post date:** [June 21, 2009, 12:17pm UTC](https://www.ruby-forum.com/t/mysql-as-database-in-leopard-will-not-rake/170694/2 "2009-06-21T12:17:04Z")

</div>

On Jun 21, 10:23 am, evandrake [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I am trying to create a new application on Mac OSX Leopard with MySql  
> instead of Sqlite3, and I am having loads of trouble. I have  
> installed mysql and I can connect properly through mysql -u root -p.  
> I have also installed the MySQL C bindings for Ruby through: sudo env  
> ARCHFLAGS=“-arch i386” gem install mysql – --with-mysql-config=/usr/  
> local/mysql/bin/mysql\_config.

Did you get the 64bit version of mysql or the 32bit version?

Fred

---

<div class="post-metadata">

**Author:** ![evandrake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e9c0ed/32.png) [@evandrake](https://www.ruby-forum.com/u/evandrake)\
**Post date:** [June 21, 2009, 8:34pm UTC](https://www.ruby-forum.com/t/mysql-as-database-in-leopard-will-not-rake/170694/3 "2009-06-21T20:34:04Z")

</div>

I tried downloading the 32bit version, because I know that the 64bit  
version has issues with Leopard. However, I am worried there might  
still be some remnants of a previous install on my computer. How can  
I check the version and ensure all of the 64bit files are deleted?

On Jun 21, 3:16 am, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![evandrake](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e9c0ed/32.png) [@evandrake](https://www.ruby-forum.com/u/evandrake)\
**Post date:** [June 22, 2009, 10:44am UTC](https://www.ruby-forum.com/t/mysql-as-database-in-leopard-will-not-rake/170694/4 "2009-06-22T10:44:22Z")

</div>

Try to take a look to your mySQL folder in /usr/local/

I had the same problem recently.

I recommend you to rm it, reinstall the 32bits version and do the sudo  
env  
ARCHFLAGS="-arch i386" gem install mysql – --with-mysql-config=/usr/  
local/mysql/bin/mysql\_config thing.

That should work.
