Amazon EC2上でCakaPHPを動かしています。
データベースはRDSを使おうをしていますが、CakePHPのTopPageでエラーとなります。
![イメージ説明]WIDTH:600
app/config/database.phpへの記述は以下です。
※パスワードのみ伏せます。
`
class DATABASE_CONFIG {
public $default = array(
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => 'firstapp.cai2fvxkz0so.ap-northeast-1.rds.amazonaws.com',
'login' => 'dbuser',
'password' => '******',
'database' => 'firstApp',
'prefix' => '',
//'encoding' => 'utf8',
);
`
ちなみにEC2へSSH接続し、コマンド上でRDSのMySqlサーバに接続することはできました。
`
[root@ip-172-31-13-227 ~]# mysql -u dbuser -h firstapp.cai2fvxkz0so.ap-northeast-1.rds.amazonaws.com -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 569
Server version: 5.6.17-log MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
`
何が原因なのでしょうか。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2014/08/17 07:24
2014/08/17 09:02
2014/08/17 12:29