• I’m migrating WordPress between two servers and when debug mode is enabled on the destination server:

    wp-config.php
    ...
    define('WP_DEBUG', true);
    ...

    I receive error: “MySQL access denied”. I enabled MySQL general query log and it looks like WordPress is trying to use a different MySQL user.

    Questions:

    – why this happens only when debug mode is enabled
    – is it possible that MySQL credentials are cached somewhere (There is ‘W3 Total Cache’ plugin installed).

  • The topic ‘WP_DEBUG mode – MySQL access denied’ is closed to new replies.