WordPress.org

Ready to get started?Download WordPress

Forums

NinjaFirewall (WP edition)
[resolved] ERROR: NinjaFirewall cannot connect to WordPress database (3 posts)

  1. athalas
    Member
    Posted 1 year ago #

    Hi,

    I have NinjaFirewall (WP edition) version 1.0.2 installed on WP 3.5.2.

    I'm seeing the error "ERROR: NinjaFirewall cannot connect to WordPress database".

    My Firewall Overview shows:
    Firewall Enabled
    PHP hook Enabled
    PHP SAPI - FPM-FCGI
    Engine version - 1.0.2
    Rules version - 20130621

    Any advice to what the issue might be?

    Thank you

    http://wordpress.org/extend/plugins/ninjafirewall/

  2. athalas
    Member
    Posted 1 year ago #

    I believe I found the issue, in wp-config.php I had:

    define('DB_HOST','localhost:/var/run/mysqld/mysqld.sock');

    after removing the socket the error was gone.

  3. nintechnet
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Yes, that is a wp-config.php issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic