Error: pdo error: [-1: Connection attempt failed: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)] in PCONNECT(mysql:host=localhost, 'root', '****', mt)
#0 /var/www/html/mt5/php/extlib/adodb5/adodb.inc.php(595): adodb_throw('pdo', 'PCONNECT', -1, 'Connection atte...', 'mysql:host=loca...', 'mt', Object(ADODB_pdo))
#1 /var/www/html/mt5/php/extlib/adodb5/adodb.inc.php(4284): ADOConnection->PConnect('mysql:host=loca...', 'root', 'password', 'mt')
#2 /var/www/html/mt5/php/extlib/adodb5/adodb.inc.php(4132): ADONewConnection('pdo_mysql://roo...')
#3 /var/www/html/mt5/php/lib/mtdb.mysql.php(24): NewADOConnection('pdo_mysql://roo...')
#4 /var/www/html/mt5/php/lib/mtdb.base.php(43): MTDatabasemysql->connect('root', 'password', 'mt', 'localhost', '3307', '/tmp/mysql.fron...')
#5 /var/www/html/mt5/php/mt.php(203): MTDatabase->__construct('root', 'password', 'mt', 'localhost', '3307', '/tmp/mysql.fron...')
#6 /var/www/html/mt5/php/mt.php(320): MT->db()
#7 /var/www/html/mt5/php/mt.php(103): MT->configure_from_db()
#8 /var/www/html/mt5/php/mt.php(61): MT->init(2, '/var/www/html/m...')
#9 /var/www/html/mt5/php/mt.php(66): MT->__construct(2, '/var/www/html/m...')
#10 /var/www/html/info/mtview.php(4): MT::get_instance(2, '/var/www/html/m...')
#11 {main}