SQLSTATE[HY000] [2002] Connection refused

Typecho\Db\Adapter\ConnectionException: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/var/Typecho/Db/Adapter/Pdo.php:62 Stack trace: #0 /var/www/html/var/Typecho/Db.php(218): Typecho\Db\Adapter\Pdo->connect() #1 /var/www/html/var/Typecho/Db.php(301): Typecho\Db->selectDb() #2 /var/www/html/var/Widget/Options.php(147): Typecho\Db->select() #3 /var/www/html/var/Typecho/Widget.php(155): Widget\Options->execute() #4 /var/www/html/var/Typecho/Widget.php(187): Typecho\Widget::widget() #5 /var/www/html/var/Widget/Init.php(82): Typecho\Widget::alloc() #6 /var/www/html/var/Typecho/Widget.php(155): Widget\Init->execute() #7 /var/www/html/var/Typecho/Widget.php(187): Typecho\Widget::widget() #8 /var/www/html/index.php(17): Typecho\Widget::alloc() #9 {main}