Error with the mysql gem - mysql

I'm trying to start a rails application in my server. but i'm getting this error.
uninitialized constant MysqlCompat::MysqlRes
The rails version is 2.3.14 and ruby 1.8
Anybody know how to get this working?

Related

ActiveRecord::StatementInvalid in Rails 4.2.7.1

On my local system, I am facing an error of Statement Invalid. Previously, I was not getting this, but I think when I reindexed my elastic search after adding the taxon_ids index, this error started to come. Please check the attached screenshot.
And version details are -
Mysql - 5.7.34-0ubuntu0.18.04.1
Rails - 4.2.7.1
Ruby - 2.3.1
Please advise on how it can be resolved.
The Error says that your Database is missing some columns. Can you run
rake db:migrate

error running rails server "Failed to load libmysql.dll"

I am trying to run the command rails server in the folder where is my ruby application but is failing. I am using the followig versions:
Ruby 1.9.3.
Gem 2.0.3.
Rails 4.2.1.
MySQL server 5.5
Someone know how can I fix it?

Ruby on Rails / MySQL error

I just upgraded my Mac to 10.9, Mavericks, and everything went downhill from there. I wish I could easily downgrade and go back. So, after days of troubleshooting, I finally got the rails server to run and I can see my app locally on localhost. But now I am getting a MySQL error (see below) when I try to run the "rails console" command:
/Users/myusername/.rvm/gems/ruby-2.0.0-p481/gems/mysql2-0.3.16/lib/mysql2/mysql2.bundle: [BUG] Segmentation fault
ruby 2.0.0p481 (2014-05-08 revision 45883) [x86_64-darwin13.1.0]
Any advice / help on this one would be appreciated. Thanks in advance!

Mysql gem causes MysqlCompat::MysqlRes error with Passenger only

I have a problem similar to the one outlined at uninitialized constant MysqlCompat::MysqlRes (using mms2r gem)
Trying to run a Rails 2.3.14 application under passenger 3.0.9 with the mysql 2.8.1 gem on Snow Leopard I get an error:
uninitialized constant MysqlCompat::MysqlRes
However, this ONLY happens under passenger, I can interact with mysql through ActiveRecord through all other means: i.e. I can create models in script/console, rake db:migrate, tests and so on. The mysql gem has been built with with the correct ARCHFLAGS. Both ruby and mysql have been built 64 bit.
Other information: I'm using RVM, REE and bundler.
Turns out that this was caused by using the DYLD_LIBRARY_PATH environment variable to overcome the problem in the mysql 2.8.1 gem. This wasn't part of the apache environment, but was part of any user process spawned from the shell, hence it not working under apache.

ConnectionNotEstablished error when loading any page

I am getting this ConnectionNotEstablished error whenever I try to access any page on my rails app. The error only started to occur when I installed phpMyAdmin and changed my database's password. I updated my database.yml file to reflect the change but am still getting this error.
Does anyone have more details about what this error is or how I can go about fixing it?
I am running Ubuntu 10.10, Ruby 1.9.2, Rails 3.0.1, and connecting with the mysql2 gem.
Make sure that the database.yml file is properly formed