Probleme mit der Datenbankverbindung
Ich bekomme in regelmäßigen Abständen im Frontend und Backend einen Fehler zur Datenbankverbindung angezeigt.
Zitat:
Warning: mysqli::real_connect(): MySQL server has gone away in system/modules/core/library/Contao/Database/Mysqli.php on line 46
#0 [internal function]: __error(2, 'mysqli::real_co...', '/hp/ab/ad/zn/ww...', 46, Array)
#1 system/modules/core/library/Contao/Database/Mysqli.php(46): mysqli->real_connect('p:server....', 'user', 'passwort', 'datenbankname...', 3306, '')
#2 system/modules/core/library/Contao/Database.php(81): Contao\Database\Mysqli->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 [internal function]: Contao\User::getInstance()
#10 system/modules/core/library/Contao/System.php(140): call_user_func(Array)
#11 system/modules/core/controllers/FrontendIndex.php(31): Contao\System->import('FrontendUser', 'User')
#12 index.php(19): Contao\FrontendIndex->__construct()
#13 {main}
Die Seite wird zwar korrekt geladen, aber irgendwie nervt es. Sieht so aus als würde die Verbindung nicht aufrecht erhalten bleiben.
Hoster ist 1Blu und es wurde vorgestern von PHP 5.3 auf 5.6 umgestellt.
Keine Ahnung, ob der Fehler auch vorher schon aufgetreten wäre, da Contao 3.5.4 auf PHP 5.3 noch nicht lief.
Permanente Verbindung ist eigentlich in den DB-Einstellungen aktiviert.