uninitialized constant MysqlCompat::MysqlRes (using mms2r gem)

前端 未结 25 2207
抹茶落季
抹茶落季 2020-12-02 23:48

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

25条回答
  •  [愿得一人]
    2020-12-02 23:55

    gem uninstall mysql
    
    gem install mysql -v 2.7 -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
    
    ldconfig /usr/local/mysql/lib/mysql
    
    RAILS_ENV=production rake db:migrate --trace
    

    This worked for me.

提交回复
热议问题