📜  rails 连接到远程数据库 - Ruby 代码示例

📅  最后修改于: 2022-03-11 15:04:47.231000             🧑  作者: Mango

代码示例1
[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]