I have configured two Servers:
serverA
:192.168.11.16 => running MySQLserver that contains many database with many tables.- one of the databases is
info
- one of the tables in this database is
table1
that contains info about users (name, no, id, addrs, etc.).
- one of the databases is
serverB
:192.168.11.17 => Running Rails3
Now I am going to connect to existing database(info
) that is defined on serverA
via Rails(serverB
) then execute my query (select name from tables1 where no >=1980
) & display the results of my direct query on rails webpage.
如何配置<代码>数据库>yml,以连接现有的<编码>serverA数据库 以及 显示用户在网页上的信息?