Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 407
Jepzen Avatar asked Jan 21 '20 11:01

Jepzen


1 Answers

I took the mysql2 to version '0.4.10'

Seemed to do the trick

like image 161
Jepzen Avatar answered Oct 05 '22 08:10

Jepzen