I had this error in a new project that I was working on, and suddenly stopped working on a Windows machine that already had working rails, so there was clearly no problem.
As a result, there was a problem with the bundle update
command, which decided to restart gem mysql2 (for unknown reasons) and ignored my gemfile gem 'mysql2', '~> 0.2.6'
.
The problem was that the package update received mysql version 0.2.18, as shown in Gemfile.lock, in the following line:
mysql2 (0.2.18-x86-mingw32)
I'm sure the character means, but I replaced the following line in my gemfile
gem 'mysql2', '~> 0.2.6'
for
gem 'mysql2', '0.2.6'
And now everything is working fine, including bundle update
.
chech source share