Support » Fixing WordPress » How to make WordPress log database failures ?

  • Hello,

    I have the impression my blog is having a surge in database connexion failures, however I cannot be really sure : I’m using mutualized hosting, and I can’t access my blog’s mysql server logs.

    So, I wonder, would you know, please, if it’s possible to make wordpress keep a log of database problems ?

    I’d be very interested if it was possible 🙂

    Thank you VERY MUCH if you can help, I’ll be grateful !


Viewing 3 replies - 1 through 3 (of 3 total)
  • This is an important matter to me, so I allow myself a free bump 🙂

    Sadly, it seems no one can help. I hope I’m not annoying with one final bump, this is a problematic issue for me 🙁

    Moderator Jan Dembowski


    Brute Squad and Volunteer Moderator

    I’ve never tried it (I have full access to all logs on my VPS) but this may create the log you are looking for via .htaccess.

    # enable PHP error logging
    php_flag  log_errors on
    php_value error_log  /home/path/public_html/domain/PHP_errors.log

    Make the path and file name to something only you can access and give it a try.

    Be careful to remove this after you’ve gotten what you want. That error file will just keep growing.

    Edit: Also, don’t bump. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to make WordPress log database failures ?’ is closed to new replies.