I am new on Ruby on Rails. My Ruby version is ruby 2.4.1p111 (2017-03-22 revision 58053) [x64-mingw32].
I have created a new project using rails new sample_cms
rails new sample_cms
There is no mysql2 binary for Ruby 2.4 for Windows available at this time. So i uninstall ruby 2.4 and install ruby 2.3. Now it is working well