How to make WordPress log database failures ? (4 posts)

  1. sabinou
    Posted 4 years ago #


    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 !


  2. sabinou
    Posted 4 years ago #

    This is an important matter to me, so I allow myself a free bump :)

  3. sabinou
    Posted 4 years ago #

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

  4. 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. :)

Topic Closed

This topic has been closed to new replies.

About this Topic