Warning: mysql_connect(): Lost connection to MySQL server at 'reading initial communication packet', system error: 0 in system/modules/core/library/Contao/Database/Mysql.php on line 47
#0 [internal function]: __error(2, 'mysql_connect()...', 'sy...', 47, Array)
#1 system/modules/core/library/Contao/Database/Mysql.php(47): mysql_connect('127.0.0.1:3306', 'root', '5z6tgrfedqwe345...')
#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 [internal function]: Contao\Database::getInstance()
#5 system/modules/core/library/Contao/System.php(140): call_user_func(Array)
#6 system/modules/core/library/Contao/User.php(158): Contao\System->import('Database')
#7 system/modules/core/classes/FrontendUser.php(62): Contao\User->__construct()
#8 system/modules/core/library/Contao/User.php(220): Contao\FrontendUser->__construct()
#9 composer/vendor/avisota/contao-core/src/ServiceFactory.php(43): Contao\User::getInstance()
#10 [internal function]: Avisota\Contao\Core\ServiceFactory->init(Object(Pimple))
#11 composer/vendor/contao-community-alliance/dependency-container/src/DependencyInjection/Container/ContainerInitializer.php(114): ReflectionMethod->invokeArgs(Object(Avisota\Contao\Core\ServiceFactory), Array)
#12 composer/vendor/contao-community-alliance/dependency-container/src/DependencyInjection/Container/ContainerInitializer.php(449): DependencyInjection\Container\ContainerInitializer->callHooks(Object(Pimple))
#13 system/initialize.php(243): DependencyInjection\Container\ContainerInitializer->init()
#14 index.php(16): require('sy...')
#15 {main}

Warning: mysql_connect(): Lost connection to MySQL server at 'reading initial communication packet', system error: 0 in system/modules/core/library/Contao/Database/Mysql.php on line 47
#0 [internal function]: __error(2, 'mysql_connect()...', 'sy...', 47, Array)
#1 system/modules/core/library/Contao/Database/Mysql.php(47): mysql_connect('127.0.0.1:3306', 'root', '5z6tgrfedqwe345...')
#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 [internal function]: Contao\Database::getInstance()
#5 system/modules/core/library/Contao/System.php(140): call_user_func(Array)
#6 system/modules/core/classes/Backend.php(30): Contao\System->import('Database')
#7 system/modules/core/classes/BackendModule.php(50): Contao\Backend->__construct()
#8 [internal function]: Contao\BackendModule->__construct()
#9 composer/vendor/contao-community-alliance/dependency-container/src/DependencyInjection/Container/ContainerInitializer.php(72): ReflectionClass->newInstance()
#10 composer/vendor/contao-community-alliance/dependency-container/src/DependencyInjection/Container/ContainerInitializer.php(111): DependencyInjection\Container\ContainerInitializer->getInstanceOf('Avisota\\Contao\\...')
#11 composer/vendor/contao-community-alliance/dependency-container/src/DependencyInjection/Container/ContainerInitializer.php(449): DependencyInjection\Container\ContainerInitializer->callHooks(Object(Pimple))
#12 system/initialize.php(243): DependencyInjection\Container\ContainerInitializer->init()
#13 index.php(16): require('sy...')
#14 {main}

Fatal error: Uncaught exception Exception with message Lost connection to MySQL server at 'reading initial communication packet', system error: 0 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 [internal function]: Contao\Database::getInstance()
#3 system/modules/core/library/Contao/System.php(140): call_user_func(Array)
#4 system/modules/core/classes/Backend.php(30): Contao\System->import('Database')
#5 system/modules/core/classes/BackendModule.php(50): Contao\Backend->__construct()
#6 [internal function]: Contao\BackendModule->__construct()
#7 composer/vendor/contao-community-alliance/dependency-container/src/DependencyInjection/Container/ContainerInitializer.php(72): ReflectionClass->newInstance()
#8 composer/vendor/contao-community-alliance/dependency-container/src/DependencyInjection/Container/ContainerInitializer.php(111): DependencyInjection\Container\ContainerInitializer->getInstanceOf('Avisota\\Contao\\...')
#9 composer/vendor/contao-community-alliance/dependency-container/src/DependencyInjection/Container/ContainerInitializer.php(449): DependencyInjection\Container\ContainerInitializer->callHooks(Object(Pimple))
#10 system/initialize.php(243): DependencyInjection\Container\ContainerInitializer->init()
#11 index.php(16): require('sy...')
#12 {main}