Status: 500 Internal Server Error   uninitialized constant MysqlCompat::MysqlRes

Posted on 2009-12-16
Last Modified: 2013-11-13
I have this error:
Status: 500 Internal Server Error
  uninitialized constant MysqlCompat::MysqlRes

Already followed this tutorial:

But still the same problem.
At the RoR server localhost:3000 page i get the RoR-message "we're sorry..."
Question by:ads711
    LVL 14

    Expert Comment

    Are you on a mac?  I presume so since you're talking about MAMP.

    Did you happen to restart your application after you recompiled the gem?

    sudo gem update mysql

    Maybe that'll reinstall what you need?

    Author Comment

    yes, i'm on mac.
    I've restarted the compiled gem.

    With "sudo gem update mysql" i get:
    "Updating installed gems
    Nothing to update"
    LVL 14

    Expert Comment

    What version of rails are you using?
    You should see it when you run "ruby script/server".
    LVL 14

    Accepted Solution

    Hey, are you on Snow Leopard?  If so, you're probably having an issue with the 32 vs 64 bit versions of the gems.

    Here's a good thread for people with that issue:

    You probably need to uninstall the mysql gem, then reinstall it with some additional flags.
    LVL 14

    Expert Comment

    One more link to someone explaining this issue:

    You'll probably need to specify the path to your MAMP's mysql installation, wherever you put it.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    I use MySQL for many of my development projects in a Windows environment. To manage my databases (and perform queries) for years I used a tool called MySQL administrator.  This tool has since been replaced by MySQL Workbench. So I decided to m…
    Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL ( several years ago, it seemed like now was a good time to updat…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now