LoadError when using heroku db: push

When I use "heroku db: push" to transfer my local data to the hero, I received this error message:

Sequel :: AdapterNotFound β†’ LoadError: there is no such file to load - sequel / adapters / mysql2

I am already installing mysql2 gem and I am using rvm with ruby ​​1.9.2 on Mac OS X Snow Leopard.

+3
source share
4 answers

Are you using the latest version of Sequel? Support for mysql2 was not added until 3.15.0.

+1
source

I can use the original "mysql" gem with rails3 instead of "mysql2" to get around this.

0
source

3.15, mysql2. mysql2 db: pull db: push . , mysql. , mysql . 64- macOSX. mysql , : sudo env ARCHFLAGS = "- arch x86_64" gem install mysql - --with-mysql-config =/usr/local/mysql/bin/mysql_config

, .

0

, , a) b) gemset rvm!

0

Source: https://habr.com/ru/post/1763838/


All Articles