-
Notifications
You must be signed in to change notification settings - Fork 546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while connecting MariaDB v10.0.10 #506
Comments
You need to compile mysql2 against MariaDB You can see on CI, that 10.0.10 is supported. |
Thanks for the hint |
How do you compile mysql2 with MariaDB 10.0.10 ? I did: $ rvm use 2.1.1@redmine
$ /usr/bin/mysql_config --version
10.0.13
$ sudo gem install mysql2 -- --with-mysql-config=/usr/bin/mysql_config
$ sudo systemctl restart nginx But no luck. |
What was the output from this step: $ sudo gem install mysql2 -- --with-mysql-config=/usr/bin/mysql_config |
$ sudo gem install mysql2 -- --with-mysql-config=/usr/bin/mysql_config
Building native extensions with: '--with-mysql-config=/usr/bin/mysql_config'
This could take a while...
Successfully installed mysql2-0.3.16
Parsing documentation for mysql2-0.3.16
Done installing documentation for mysql2 after 1 seconds
1 gem installed |
Looks like it worked then. What seems to be the problem? |
Well that's what I would say also, but after restarting nginx and accessing the web page, I still have this error in the log output:
That being said, I tried removing the gem with |
Aha, you must make sure that you don't have mismatched libraries on your system. |
I had same problem. Following worked for me:
|
@rahul286 that fixed it for me, except mysql-config path for me was /usr/local/bin/mysql_config Thanks! |
The following worked for me:
|
The mysql2 gem is currently not working with the newest MariaDB Version 10.0.10
Exception:
/usr/local/rvm/gems/ruby-2.1.0/gems/mysql2-0.3.15/lib/mysql2.rb:8:in
'require': Incorrect MySQL client library version! This gem was compiled for 5.5.34-MariaDB but the client library is 10.0.10-MariaDB. (RuntimeError) from /usr/local/rvm/gems/ruby-2.1.0/gems/mysql2-0.3.15/lib/mysql2.rb:8:in
<top (required)>'from /usr/local/rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.1/lib/bundler/runtime.rb:76:in
require' from /usr/local/rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.1/lib/bundler/runtime.rb:76:in
block (2 levels) in require'from /usr/local/rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.1/lib/bundler/runtime.rb:72:in
each' from /usr/local/rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.1/lib/bundler/runtime.rb:72:in
block in require'from /usr/local/rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.1/lib/bundler/runtime.rb:61:in
each' from /usr/local/rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.1/lib/bundler/runtime.rb:61:in
require'from /usr/local/rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.1/lib/bundler.rb:131:in
require' from /Users/christophbajohr/Work/www/kita-rabennest/config/application.rb:7:in
<top (required)>'from /usr/local/rvm/gems/ruby-2.1.0/gems/railties-4.0.3/lib/rails/commands.rb:74:in
require' from /usr/local/rvm/gems/ruby-2.1.0/gems/railties-4.0.3/lib/rails/commands.rb:74:in
block in <top (required)>'from /usr/local/rvm/gems/ruby-2.1.0/gems/railties-4.0.3/lib/rails/commands.rb:71:in
tap' from /usr/local/rvm/gems/ruby-2.1.0/gems/railties-4.0.3/lib/rails/commands.rb:71:in
<top (required)>'from bin/rails:4:in
require' from bin/rails:4:in
The text was updated successfully, but these errors were encountered: