connect remote database rails code example
Example: rails connect to remote database
[rails_env]:
adapter: mysql2
encoding: utf8
pool: 5
host: [mysql_ip]
username: [mysql_username]
password: [mysql_password]
port: [mysql_port]
socket: [path_to_mysql_socket_file]
database: [db_name]