• Resolved WebCodePoet

    (@senjoralfonso)


    We are running NinjaFirewall since 2018 on the Server, since the last update we get a connection to database error, firewall not working, we don’t have a “‘” I our password, ninjacheck says: NinjaFirewall is loaded but returned error code #4

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nintechnet

    (@nintechnet)

    Can you download and run this script: https://nintechnet.com/share/wp-db.txt
    1. Rename the file to “wp-db.php”.
    2. Upload it into your WordPress root folder.
    3. Go to https://YOUR WEBSITE/wp-db.php
    4. Delete it afterwards.

    Thread Starter WebCodePoet

    (@senjoralfonso)

    The output is: Warning: mysqli::real_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: … on line 100

    Thread Starter WebCodePoet

    (@senjoralfonso)

    I fixed it.

    define( ‘DB_HOST’, ‘/var/run/mysqld/mysqld.sock’ ); is not working, it has to be define( ‘DB_HOST’, ‘localhost:/var/run/mysqld/mysqld.sock’ );

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Firewall Broken’ is closed to new replies.