moved a rails app of mine onto a new server and had to install a few gem dependencies. However, after installing the mysql gem I get the error, uninitialized constant Mysql
With mysql gem (2.8.1) I was getting
uninitialized constant MysqlCompat::MysqlRes
Using -v 2.7 make it work perfectly and for those who used Homebrew to install mysql
sudo gem install mysql -v 2.7 -- --with-mysql-config=/usr/local/Cellar/mysql/5.1.48/bin/mysql_config
Note that you can change mysql version if needed.