I have this configuration:
development: adapter: mysql2 encoding: utf8 database: my_db_name username: root password: my_password host: mysql://12
Use 'utf8mb4' as encoding to cover all unicode (including emojis)
default: &default adapter: mysql2 encoding: utf8mb4 collation: utf8mb4_bin username: <%= ENV.fetch("MYSQL_USERNAME") %> password: <%= ENV.fetch("MYSQL_PASSWORD") %> host: <%= ENV.fetch("MYSQL_HOST") %>
(Reference1) (Reference2)