【发布时间】:2014-10-19 03:52:44
【问题描述】:
我有几个想要访问的远程数据库,但它们位于只能通过带有密钥的 SSH 访问的服务器上。
在 Sequel Pro 中,我连接到这个远程数据库,如下所示:
如何配置我的 Laravel 应用程序以连接到这样的数据库?
'mysql_EC2' => array(
'driver' => 'mysql',
'host' => '54.111.222.333',
'database' => 'remote_db',
'username' => 'ubuntu',
'password' => 'xxxxxxxxxxxxxxxxxxxx',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
),
【问题讨论】: