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!
On Jun 21, 10:23 am, evandrake <evancdr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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> 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!
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 Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Jun 21, 10:23 am, evandrake <evancdr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 > > > > > 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!
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. On Jun 21, 8:33 pm, evandrake <evancdr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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 Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > > > On Jun 21, 10:23 am, evandrake <evancdr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 > > > > 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!