Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 7521

Show
Ignore:
Timestamp:
09/20/07 23:40:48 (1 year ago)
Author:
david
Message:

Stress that you should really install the C-based MySQL library when running on the pure Ruby one (closes #9507)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb

    r7498 r7521  
    5050          # Use the bundled Ruby/MySQL driver if no driver is already in place 
    5151          begin 
     52            ActiveRecord::Base.logger.info( 
     53              "WARNING: You're using the Ruby-based MySQL library that ships with Rails. This library is not suited for production. " + 
     54              "Please install the C-based MySQL library instead (gem install mysql)." 
     55            ) if ActiveRecord::Base.logger 
     56 
    5257            require 'active_record/vendor/mysql' 
    5358          rescue LoadError 
  • trunk/railties/configs/databases/mysql.yml

    r7116 r7521  
    44#   gem install mysql 
    55# On MacOS X: 
    6 #   gem install mysql -- --include=/usr/local/lib 
     6#   sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql 
    77# On Windows: 
    88#   gem install mysql