Archiving problem


(mcgiant) #1

Hi guys,

I test the archive.sh and i got this answer, do you know where is the problem ?

SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
#0 /babadev/www/admin/piwik/libs/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /babadev/www/admin/piwik/core/Db/Pdo/Mysql.php(30): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /babadev/www/admin/piwik/core/Piwik.php(1479): Piwik_Db_Pdo_Mysql->getConnection()
#3 /babadev/www/admin/piwik/core/FrontController.php(218): Piwik::createDatabaseObject()
#4 /babadev/www/admin/piwik/index.php(103): Piwik_FrontController->init()

Thank you for your return !
style_emoticons/<#EMO_DIR#>/wink.gif


(vipsoft) #2

Check your php.ini. In some set-ups, this is configured separately between apache and cli (shell).


(mcgiant) #3

Thank you vipsoft (thanks you 're here !)
I can check in my php.ini, but i don’t know where is the problem, so what do i have to check ? style_emoticons/<#EMO_DIR#>/huh.gif