Search code examples
ruby-on-railsmysql2

Mysql2::Client::LONG_PASSWORD (NameError)


I am trying to upgrade my ruby version from 2.4.5 to 2.4.9 in my rails app in Docker.

After rebuilding my container it stops with the error:

uninitialized constant Mysql2::Client::LONG_PASSWORD (NameError)

My version of mysql2 gem is locked on:

gem 'mysql2', '0.3.21'

I tried upgrading the mysql2 gem to version 0.4.0 that just ended up with another error.

Any suggestions on which order to upgrade things to make it work?


Solution

  • I took the mysql2 to version '0.4.10'

    Seemed to do the trick