• I have a tiny problem on our website. After activating the debug i get a new problem every day …

    About the Server:

    General

    OS: Linux
    Server: Apache
    Hostname: sternelektro.de
    IP:Port: 92.51.165.43:80
    Document Root: /var/www/vhosts/sternelektro.de/httpdocs
    PHP

    v5.3.10-1ubuntu3.25
    GD: 2.0
    Magic Quotes GPC: Off
    Memory Limit: 128,0 MiB
    Max Upload Size: 128,0 MiB
    MYSQL

    v5.5.54-0ubuntu0.12.04.1
    Maximum No. Connections: 151
    Maximum Packet Size: 16,0 MiB
    Data Disk Usage: 48,8 MiB
    Index Disk Usage: 4,1 MiB

    My problematic debug strings are following:

    [18-Dec-2018 01:38:13 UTC] PHP Warning: mysqli_real_connect(): (HY000/2002): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /var/www/vhosts/sternelektro.de/httpdocs/2015/wp-includes/wp-db.php on line 1531
    [18-Dec-2018 01:38:13 UTC] PHP Warning: mysql_connect(): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /var/www/vhosts/sternelektro.de/httpdocs/2015/wp-includes/wp-db.php on line 1562

    [17-Dec-2018 01:36:02 UTC] PHP Warning: mysqli_real_connect(): (HY000/2002): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /var/www/vhosts/sternelektro.de/httpdocs/2015/wp-includes/wp-db.php on line 1531
    [17-Dec-2018 01:36:02 UTC] PHP Warning: mysql_connect(): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /var/www/vhosts/sternelektro.de/httpdocs/2015/wp-includes/wp-db.php on line 1562
    [17-Dec-2018 01:36:46 UTC] PHP Warning: mysqli_real_connect(): (HY000/2002): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /var/www/vhosts/sternelektro.de/httpdocs/2015/wp-includes/wp-db.php on line 1531
    [17-Dec-2018 01:36:46 UTC] PHP Warning: mysql_connect(): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /var/www/vhosts/sternelektro.de/httpdocs/2015/wp-includes/wp-db.php on line 1562
    [17-Dec-2018 01:36:46 UTC] PHP Warning: mysqli_real_connect(): (HY000/2002): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /var/www/vhosts/sternelektro.de/httpdocs/2015/wp-includes/wp-db.php on line 1531
    [17-Dec-2018 01:36:46 UTC] PHP Warning: mysql_connect(): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /var/www/vhosts/sternelektro.de/httpdocs/2015/wp-includes/wp-db.php on line 1562

    [13-Dec-2018 01:14:41 UTC] PHP Warning: mysqli_real_connect(): (HY000/2002): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /var/www/vhosts/sternelektro.de/httpdocs/2015/wp-includes/wp-db.php on line 1531
    [13-Dec-2018 01:14:41 UTC] PHP Warning: mysql_connect(): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /var/www/vhosts/sternelektro.de/httpdocs/2015/wp-includes/wp-db.php on line 1562

    Seems like it appears at a “fixed” time but not everyday. I dont get why this error appears and how to solve it.

    Best regards
    wp0newbie

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • That’s not a WordPress error. What’s happening there is that either your web server, or the database server, is being overloaded and can’t maintain a connection between the two when a page is requested. This is something that your hosting company will need to look into.

    Thread Starter wp0newbie

    (@wp0newbie)

    @catacaustic

    Thank you for your reply. I wasnt shure if there is a WP problem. I will contact our host.

    Topic can be closed

    Best regards
    wp0newbie

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Warning (HY000/2002) mysql error’ is closed to new replies.