From the course: Installing and Running Ruby on Rails 6

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Install MySQL Ruby gems on Windows

Install MySQL Ruby gems on Windows - Ruby on Rails Tutorial

From the course: Installing and Running Ruby on Rails 6

Start my 1-month free trial

Install MySQL Ruby gems on Windows

- [Instructor] Now that we have Ruby installed, and we have MySQL installed, we need to install a RubyGem that will allow Ruby to talk to MySQL. Because we already have RubyGems installed, installing the MySQL to Gem should be just as easy as typing gem, install, MySQL, two. Make sure you add the two after it. This is the version two of the gem and we want to make sure that's the one we're using. Once we do that, RubyGems will go out, it will get the code for the MySQL2 gem, it'll bring it back, and it will compile it for our computer. For our specific operating system. That's what that building native extensions means. Process can take a little while. Now unfortunately, this is also often a place where things go wrong. But if you do run in to problems, I just want to mention that you can go to rubygems.org, you can search for MySQL2, that'll bring you to the MySQL2 Gems main page, and from there there's links to the home…

Contents