Install mysql2 gem Ruby on Rails di Windows

| Note, Rails | Windows, MySQL


  1. Download MySQL Connector MySQL :: Download C API (libmysqlclient)
  2. Install hanya connector atau MySQL Client Utilities Package
  3. Buka Terminal atau CMD lalu jalankan perintah berikut

    gem install mysql2 --platform=ruby -- --with-mysql-dir="C:\Program Files\MySQL\Connector C++ 8.0" 
       --with-mysql-lib="C:\Program Files\MySQL\Connector C++ 8.0\lib64"
    

    rails db

Mail Facebook Twitter Whatsapp

Komentar