ruby on rails – Could not find gem ‘mysql2’

I got the above issue when I tried to create a new project with rails and asked it to use mysql instead of the default sqlite database.

Apparently, I didnt have mysql installed on my #mac. The following command did the trick.

brew install mysql

You get the command ‘brew’ from Homebrew which is a package manager for osx in case you didnt have it already.

Ryan Sukale

Ryan is just a regular guy next door trying to manage his life and finances.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *