Read more

uninitialized constant MysqlCompat::MysqlRes (NameError)

Thomas Eisenbarth
November 14, 2012Software engineer at makandra GmbH

If you get a stacktrace complaining about uninitialized constant MysqlCompat::MysqlRes a system library update might broke your gem.

Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

You might have switched from MySQL to MariaDB, but forgot to rebuild your MySQL gems.

Try fully removing and re-installing the gem:

gem uninstall mysql mysql2
bundle install
Posted by Thomas Eisenbarth to makandra dev (2012-11-14 18:23)