mysql2
mysql2 copied to clipboard
A modern, simple and very fast Mysql library for Ruby - binding to libmysql
Is it possible to specify a role to assume in the connection string?
Hey there and thanks for a great library! I'm working with a legacy database where there's a mixture of uppercase and lowercase column names, but I need all the result...
Hi, I tried with no success to to install mysql2 on ruby 2.7.5. Here is what happened: `C:\>gem install mysql2 -- '--with-mysql-lib="C:\Program%20Files\MySQL\MySQL%20Server%205.7\lib" --with-mysql-include="C:\Program%20Files\MySQL\MySQL%20Server%205.7\include" --with-mysql-dir="C:\Program%20Files\MySQL\MySQL%20Server%205.7"'` `Fetching mysql2-0.5.3-x64-mingw32.gem` `ERROR: Error installing mysql2:`...
Hi there, I'm trying to install the gem on windows, and I can't figure out what the mysql client is, I've followed a lot of links I found to it,...
``` Fetching mysql2 0.3.21 Installing mysql2 0.3.21 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /home/decil/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/mysql2-0.3.21/ext/mysql2 /home/decil/.rbenv/versions/2.7.1/bin/ruby -I /home/decil/.rbenv/versions/2.7.1/lib/ruby/2.7.0 -r ./siteconf20200529-74-1nvszd4.rb extconf.rb checking for ruby/thread.h......
Gem::RuntimeRequirementNotMetError: mysql2 requires Ruby version >= 2.2, < 2.7.dev. The current ruby version is 2.7.2.137. An error occurred while installing mysql2 (0.5.3)
Ruby core has [dropped all support for Ruby 2.4](https://www.ruby-lang.org/en/news/2020/04/05/support-of-ruby-2-4-has-ended/). Should we drop it as well? I know this is kind of cheating, but we have failing builds on Ruby 2.4...
I am wanting to use MySql with ruby 2.7 & 3.0 (a pre-req to the soon to be released Rails 7.0 version). I need to go to Rails 7.0 because...
While looking into making mysql2 support non-integer timeouts, @pushrax and I found a bug in the client. There is a specific edge case where neither the [do_query file descriptor](https://github.com/brianmario/mysql2/blob/785969fbceadd96d495ec9fecc67efee03d0056c/ext/mysql2/client.c#L665) timeout...
My current project uses ruby `2.3.1`, rails `4.2.7.1` and mysql2 `0.4.10`, I'm running all that on MacOS Catalina 10.15.3 Installed mysql2 with no errors: ``` $ gem install mysql2 -v...