I am new to ruby, rails and Linux. Therefore, if this solution does not work, I am not responsible :)
Step 1:
sudo gem uninstall mysql2
Step 2:
sudo gem install mysql -v 0.2.7
Run webrick, if the same problem still appears, reinstall the rails.
This solution works for me.
Tim Jun 03 2018-11-11T00: 00Z
source share