Code:
$di->set('db',function(){ return new \Phalcon\Db\Adapter\Pdo\Mysql(
array(
"hosts"=>"developSrv",
"port"=>"3306",
"username"=>"root",
"password"=>"",
"dbname"=>"test",
"charset"=>"utf8"
) );
});
developSrv is another linux server . Phalcon aways connect to local mysql by mysql.sock. If there is no mysql.sock in local server,Phalcon doesn't work..Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
How can I do to connect to remote mysql?