I  removed mysql 2.8 gem and reinstall mysql 2.7 with this command:

*sudo gem install mysql -v 2.7 --no-rdoc --no-ri mysql --
--with-mysql-dir=/usr/local
--with-mysql-config=/usr/local/mysql/bin/mysql_config*

Now, when I run rake db:create, it will give me this error:
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please
install the mysql gem and try again: gem install mysql.
rake aborted!
Failed to lookup Init function
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib/mysql.bundle

(See full trace by running task with --trace)

any idea?

Yudi Soesanto


On Mon, Mar 15, 2010 at 6:56 AM, Yudi Soesanto <[email protected]> wrote:

> Ok, I did require 'rubygems' and then require 'mysql'. They are return true
>
> *irb(main):001:0> require 'rubygems'
> => true
> irb(main):002:0> require 'mysql'
> => true*
>
> Is that mean mysql gem ok? Please be advise.
>
>
>
> On Mon, Mar 15, 2010 at 6:40 AM, Frederick Cheung <
> [email protected]> wrote:
>
>>
>>
>> On Mar 15, 10:29 am, Yudi Soesanto <[email protected]> wrote:
>> > Ok, used 2 different command: irb and ruby script/console.
>> >
>> > *I use irb and run this command:*
>> > irb(main):001:0> require 'mysql'
>> > LoadError: no such file to load -- mysql
>> >         from (irb):1:in `require'
>> >         from (irb):1
>> >
>> You need to require rubygems first (Keep an eye on the system logs (in
>> the console app) while you do this
>>
>> The main difference between 2.0.2 and 2.3.5 is that 2.3.4 no longer
>> has a fallback version of the mysql driver (written in ruby) - it's
>> likely that your mysql driver has never been properly installed.
>>
>> Fred
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby on Rails: Talk" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<rubyonrails-talk%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/rubyonrails-talk?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to