Il y a 50 ans… from raphael leray on Vimeo.
I recently had to install, for one of my customer, a web application developed using cakePHP. The server was a dedicated from 1&1.
After I filled my database configuration file correctly, the following error occurred :
Warning (2): mysql_connect() [function.mysql-connect]: Can’t connect to local MySQL server through socket ‘/tmp/mysql5.sock:’ (2) [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 378]
After half an hour banging my head off keyboard, I figured out one thing important : the connexion is persistent…
So you’ll have to edit your app/config/database.php as follow :
class DATABASE_CONFIG {
var $default = array(
'driver' => 'mysql',
'persistent' => true,
'host' => 'localhost:/tmp/mysql5.sock',
'login' => 'dboxxxxxxxxx',
'password' => 'your_password',
'database' => 'dbxxxxxxxxx',
'prefix' => '',
);
var $test = array(
'driver' => 'mysql',
'persistent' => false,
'host' => 'localhost',
'login' => 'user',
'password' => 'password',
'database' => 'test_database_name',
'prefix' => '',
);
}
Upload those modifications and save your day.
Do the robot (extract) – Tokyo from raphael leray on Vimeo.
A nice evening with a cool line-up in a great place – very hard to find & in the middle of nowhere – named Highti around the Yahiro (八広) station.
Check more here : http://highti.jugem.jp (only in japanese)