• The plugin activates without problems but when I try to access /wp-content/plugins/plugin-detective/troubleshoot/ the error message “Error establishing a database connection” appears. The database is located on a different server.

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

Viewing 1 replies (of 1 total)
  • Plugin Author croixhaug

    (@croixhaug)

    Hi there, Plugin Detective connects to the database directly (so that it can continue troubleshooting even if the site has a fatal error or white screen). It does this by parsing the wp-config.php file, but I’m guessing there’s something about the formatting or configuration that it’s not reading properly.

    Can you try creating a separate file (in the main/root WP directory, the same one where wp-config.php is now):
    plugin-detective-config.php

    It should contain the database constants/variables like:

    
    /** The name of the database for WordPress */
    define( 'DB_NAME', '***' );
    
    /** MySQL database username */
    define( 'DB_USER', '***' );
    
    /** MySQL database password */
    define( 'DB_PASSWORD', '***' );
    
    /** MySQL hostname */
    define( 'DB_HOST', '***' );
    
    $table_prefix = 'wp_';
    

    I believe that should fix the database connection issue and let Plugin Detective run properly

    Thanks,
    Nathan

Viewing 1 replies (of 1 total)
  • The topic ‘Error establishing a database connection’ is closed to new replies.