• syedahmedalikhan

    (@syedahmedalikhan)


    today my website is showing error establishing a database connection (even after i optimized and repaired database)

    my website is https://www.gyaro.net

    i even added this line

    define(‘WP_ALLOW_REPAIR’, true);

    in below of my wp-congif.php page and went to https://www.gyaro.net/wp-admin/maint/repair.php but the page doesnt even open it for repairing wordpress.

    now what shall i do ? how do i solve this problem ?

    Ahmed.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator James Huff

    (@macmanx)

    WordPress can’t repair the database if it can’t establish a connection with it, so that’s not the problem.

    Double-check your database connection details in the wp-config.php file.

    If they’re correct, contact your hosting provider to ask why your database server is offline.

    Thread Starter syedahmedalikhan

    (@syedahmedalikhan)

    i checked the config is correct and database details are correct i dont know what is the problem ?

    can you tell me what i must do ?

    Moderator James Huff

    (@macmanx)

    You’ll need to contact your hosting provider to ask why your database server is offline.

    Thread Starter syedahmedalikhan

    (@syedahmedalikhan)

    my database server is online i am using vps ?

    what i must to solve my problem ?

    Moderator James Huff

    (@macmanx)

    Check your server error logs to see why WordPress’s attempts to connect with your MySQL database are being rejected.

    aunpric

    (@aunpric)

    Restart your mysql server Or increase your ram You can find source of the problem through error logs as james told

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘error establishing a database connection (even after mysql repair)’ is closed to new replies.