Install mysql2 gem on macOS using MAMP as mySQL server
· 1 min read · 97 words
Authors
When installing mysql2 gem on a system using MAMP as mySQL server, you may end up with a compilation error because of incorrect mysql path.
To deal with this problem, instead of gem install mysql2, try to specify mysql configuration directory:
gem install mysql2 -- --with-mysql-config=/Applications/MAMP/Library/bin/mysql_config
Keep reading
- Database connection in Django
Django opens a fresh database connection on every request. Set CONN_MAX_AGE for persistent connections, and add pooling when the database does not share a server with the backend.
