Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in system/modules/core/library/Contao/Database/Mysql.php on line 47
#0 [internal function]: __error(2, 'mysql_connect()...', '/home6/mtconstr...', 47, Array)
#1 system/modules/core/library/Contao/Database/Mysql.php(47): mysql_connect('localhost:3306', 'mtconstr_meeus', 'paswoord')
#2 system/modules/core/library/Contao/Database.php(81): Contao\Database\Mysql->connect()
#3 system/modules/core/library/Contao/Database.php(165): Contao\Database->__construct(Array)
#4 system/modules/pct_customelements/PCT/CustomElements/Core/PluginFactory.php(93): Contao\Database::getInstance()
#5 system/modules/pct_customelements/PCT/CustomElements/Core/PluginFactory.php(114): PCT\CustomElements\Core\PluginFactory::findAllPublished()
#6 system/modules/pct_customelements/PCT/CustomElements/Core/CustomElements.php(187): PCT\CustomElements\Core\PluginFactory::findAllPublishedWithDefinition()
#7 system/modules/pct_customelements/PCT/CustomElements/Core/CustomElements.php(91): PCT\CustomElements\Core\CustomElements->getAllowedTables()
#8 system/modules/pct_customelements/PCT/CustomElements/Loader/CustomElementsLoader.php(64): PCT\CustomElements\Core\CustomElements->getCustomElements('tl_content')
#9 system/cache/config/config.php(1080): PCT\CustomElements\Loader\CustomElementsLoader->loadFrontendModules()
#10 system/modules/core/library/Contao/Config.php(130): include('/home6/mtconstr...')
#11 system/modules/core/library/Contao/Config.php(108): Contao\Config->initialize()
#12 system/initialize.php(162): Contao\Config::getInstance()
#13 index.php(16): require('/home6/mtconstr...')
#14 {main}

Fatal error: Uncaught exception Exception with message Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) thrown in system/modules/core/library/Contao/Database/Mysql.php on line 52
#0 system/modules/core/library/Contao/Database.php(81): Contao\Database\Mysql->connect()
#1 system/modules/core/library/Contao/Database.php(165): Contao\Database->__construct(Array)
#2 system/modules/pct_customelements/PCT/CustomElements/Core/PluginFactory.php(93): Contao\Database::getInstance()
#3 system/modules/pct_customelements/PCT/CustomElements/Core/PluginFactory.php(114): PCT\CustomElements\Core\PluginFactory::findAllPublished()
#4 system/modules/pct_customelements/PCT/CustomElements/Core/CustomElements.php(187): PCT\CustomElements\Core\PluginFactory::findAllPublishedWithDefinition()
#5 system/modules/pct_customelements/PCT/CustomElements/Core/CustomElements.php(91): PCT\CustomElements\Core\CustomElements->getAllowedTables()
#6 system/modules/pct_customelements/PCT/CustomElements/Loader/CustomElementsLoader.php(64): PCT\CustomElements\Core\CustomElements->getCustomElements('tl_content')
#7 system/cache/config/config.php(1080): PCT\CustomElements\Loader\CustomElementsLoader->loadFrontendModules()
#8 system/modules/core/library/Contao/Config.php(130): include('/home6/mtconstr...')
#9 system/modules/core/library/Contao/Config.php(108): Contao\Config->initialize()
#10 system/initialize.php(162): Contao\Config::getInstance()
#11 index.php(16): require('/home6/mtconstr...')
#12 {main}