Skip to content

Instantly share code, notes, and snippets.

@lxneng
Created March 18, 2010 07:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lxneng/336131 to your computer and use it in GitHub Desktop.
Save lxneng/336131 to your computer and use it in GitHub Desktop.
Using the C API MySQL module for Ruby, let rails connect to mysql faster!
# http://www.tmtm.org/en/mysql/ruby/
apt-get install libmysqlclient16-dev
wget http://rubyforge.org/frs/download.php/69181/mysql-ruby-2.8.2.tar.gz
tar zxvf mysql-ruby-2.8.2.tar.gz
cd mysql-ruby-2.8.2/
ruby extconf.rb --with-mysql-dir=/usr/local/mysql
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment