異なるサーバー間で、それぞれのサーバーにあるDBをIPアドレスを通して接続したくて、まず自分のところのサーバー/etc/hostsに相手のIPアドレスとDB名を書き込んで見ましたが下記のエラーでてきまして解決できません、誰かが教えていただきませんか?
Warning (2): PDO::__construct(): [2002] Connection timed out (trying to connect via tcp://testDB:3306) [CORE/Cake/Model/Datasource/Database/Mysql.php, line 184] Warning (2): PDO::__construct() [http://php.net/pdo.--construct]: [2002] Connection timed out (trying to connect via tcp://testDB:3306) [CORE/Cake/Model/Datasource/Database/Mysql.php, line 184] Warning (2): PDO::__construct() [http://php.net/pdo.--construct]: [2002] Connection timed out (trying to connect via tcp://testDB:3306) [CORE/Cake/Model/Datasource/Database/Mysql.php, line 184] Parse error: syntax error, unexpected $end in /var/www/html/cakephp/View/Elements/test.ctp on line 83
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/03/10 05:35
2017/03/10 05:43
2017/03/10 05:56
2017/03/10 06:04
2017/03/10 06:16