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

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?

Related

Your PHP installation appears to be missing the MySQL extension which is required by WordPress & r establishing a database connection

Error:
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
Hosting: Godaddy
PHP version: 7.1
I have tried to change the PHP Version from cpanel when I select 7.1 PHP version it gives an error
Error: Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
When I select the native version i.e 5.4 then it gives "Error establishing a database connection".
I have set proper database connection then also it gives "Error establishing a database connection" error.
I am not getting exactly why this error is occurring.
Is the php7.1-mysql package installed?
If not, install it!
sudo apt-get install php7.1-mysql

Trouble connecting to Sphinx MySQL in development

I have Thinking Sphinx installed in my Rails app. Everything works fine in Heroku, but locally I cannot get anything up and running.
When I try to run rake ts:index, I get
sh: indexer: command not found
When I try to use the search function in the app I get
Error connecting to Sphinx via the MySQL protocol. Error connecting to Sphinx via the MySQL protocol. Can't connect to MySQL server on '127.0.0.1' (61) - SELECT * FROM `book_core` WHERE MATCH('economics') AND `sphinx_deleted` = 0 LIMIT 0, 20 OPTION field_weights=(title=16,author=7); SHOW META
Thanks for the help!
It sounds like you don't have Sphinx itself installed:
http://pat.github.io/thinking-sphinx/installing_sphinx.html
If you do have it installed but it's still not picking things up, then perhaps the executables are not in your PATH environment variable?

Error with the mysql gem

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?

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