Cron kann nicht auf MySQL zugreifen?

panda

New Member
Wenn ich den Server reboote finde ich folgende zeilen in meiner ISPConfig Cron - Log

Code:
Tue Aug 12 12:29:03 CEST 2014 PHP Warning:  mysqli::mysqli():  (HY000/2002): Can't connect to local MySQL server through socket  '/var/run/mysqld/mysqld.sock' (2) in  /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 62
Tue Aug 12 12:29:03 CEST 2014 DB::__construct Can't connect to local  MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Tue Aug 12 12:29:03 CEST 2014 PHP Warning:  mysqli::mysqli():  (HY000/2002): Can't connect to local MySQL server through socket  '/var/run/mysqld/mysqld.sock' (2) in  /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 72
Tue Aug 12 12:29:04 CEST 2014 DB::__construct Can't connect to local  MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Tue Aug 12 12:29:04 CEST 2014 PHP Warning:  mysqli::mysqli():  (HY000/2002): Can't connect to local MySQL server through socket  '/var/run/mysqld/mysqld.sock' (2) in  /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 72
Tue Aug 12 12:29:05 CEST 2014 DB::__construct Can't connect to local  MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Tue Aug 12 12:29:05 CEST 2014 PHP Warning:  mysqli::mysqli():  (HY000/2002): Can't connect to local MySQL server through socket  '/var/run/mysqld/mysqld.sock' (2) in  /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 72
Tue Aug 12 12:29:06 CEST 2014 DB::__construct Can't connect to local  MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Tue Aug 12 12:29:06 CEST 2014 PHP Warning:  mysqli::mysqli():  (HY000/2002): Can't connect to local MySQL server through socket  '/var/run/mysqld/mysqld.sock' (2) in  /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 72
Tue Aug 12 12:29:07 CEST 2014 DB::__construct Can't connect to local  MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Tue Aug 12 12:29:07 CEST 2014 PHP Warning:  mysqli::mysqli():  (HY000/2002): Can't connect to local MySQL server through socket  '/var/run/mysqld/mysqld.sock' (2) in  /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 72
Tue Aug 12 12:29:08 CEST 2014 DB::__construct Can't connect to local  MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Tue Aug 12 12:29:08 CEST 2014 PHP Warning:  mysqli::mysqli():  (HY000/2002): Can't connect to local MySQL server through socket  '/var/run/mysqld/mysqld.sock' (2) in  /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 72
Tue Aug 12 12:29:09 CEST 2014 DB::__construct Can't connect to local  MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Tue Aug 12 12:29:09 CEST 2014 PHP Warning:  mysqli::mysqli():  (HY000/2002): Can't connect to local MySQL server through socket  '/var/run/mysqld/mysqld.sock' (2) in  /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 72
Tue Aug 12 12:29:10 CEST 2014 DB::__construct Can't connect to local  MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Tue Aug 12 12:29:10 CEST 2014 PHP Warning:  mysqli::mysqli():  (HY000/2002): Can't connect to local MySQL server through socket  '/var/run/mysqld/mysqld.sock' (2) in  /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 72
Tue Aug 12 12:29:11 CEST 2014 DB::__construct Can't connect to local  MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Tue Aug 12 12:29:11 CEST 2014 PHP Warning:  mysqli::mysqli():  (HY000/2002): Can't connect to local MySQL server through socket  '/var/run/mysqld/mysqld.sock' (2) in  /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 72
Tue Aug 12 12:29:16 CEST 2014 DB::__construct Can't connect to local  MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Ich denke das der Fehler auftrat nach einem OS update. Alternativ versuchte ich dann auch ein ISPConfig update in dem ich die aktuelle IPSConfig version geladen habe und php -q update.php ausgeführt. Aber die Fehlermeldung bleibt.
 

panda

New Member
Hallo Till,
das schaut bei mir wie folgt aus:
Code:
srwxrwxrwx 1 mysql mysql 0 Aug 12 12:29 /var/run/mysqld/mysqld.sock
 

Werbung

Top