This error can be caused by the mysql2 gem under mysterious circumstances. You need to remove it with gem uninstall mysql2 and then reinstall it (or just run bundle).
Do you need DevOps-experts?
Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!
We build reliable cloud solutions with Infrastructure as code