Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter shiryou

    (@shiryou)

    Hey sainikbiswas, I did exactly what you told me.
    It already helped me.
    So, after setting define( 'WP_DEBUG', true );, I got the error message

    Warning: mysqli_real_connect(): (HY000/2002): Connection refused in /var/www/abulafia/blog/wp-includes/wp-db.php on line 1653
    
    Connection refused

    This is already a great help, thanks.
    Now I tried searching the WP Support forums for this, what I found is creating a “testconnection.php” file with this content:

    <?php
    if(function_exists('mysqli_connect')){
    if(!($link = mysqli_connect('127.0.0.1:8005','wp_user','password','wordpress_db'))){
    die('could not connect: ' . mysqli_error($link));
    }
    } else {
    die("don't have mysqli");
    }
    echo 'connect successfully';
    mysqli_close($link);
    ?>

    (I know, this may not be the original text given, but a user said, that this would work out better since you not only will test the connection to MySQLi but to the DataBase directly)
    This didn’t work with a local DB, so I figured trying another DB from a friend which is completely working fine.
    Still, an error, but this time a different one: Network is unreachable
    After browsing the Support forums once again, I came to that conclusion:
    I just gave up, at least for now. After spending over four hours just doing research, I am at my limit. I tried many things, reinstalling MySQL, MariaDB, even PHP and reconfiguring php.ini! Still, the same results. Looks like I’m going to switch to paid hosting for that stuff or use a Flatfile Blogging CMS.

    I really appretiate your help, sainikbiswas, but after not being able to fix this, I’m gonna leave it just at how it is xd

    Sorry, and once again thank you for trying to help,

    Shiryou.

    Links for references:
    https://www.ads-software.com/support/topic/error-establishing-database-connection-how-to-proceed-now/ – testconnection.php

Viewing 1 replies (of 1 total)