Ruby on Rails - cannot load such file — mysql2/2.2/mysql2 (LoadError)

后端 未结 4 1822
滥情空心
滥情空心 2020-12-03 04:01

I was using SQLite for my Rails project but when I heard that Heroku doesn\'t support SQLite, I switched to MYSQL.

After switching my database, I started my rails se

4条回答
  •  Happy的楠姐
    2020-12-03 04:35

    In step 3 above I had to use an extra pair of '-' and no quotes around the path.

    gem install mysql2 -- --with-mysql-dir=C:\mysql-connector-dir
    

    I'm using Win 7

提交回复
热议问题