• Hello all,

    I’m getting this error “Error establishing a database connection” when I try to reach my website at https://vecademy.com/

    The error came yesterday and later disappeared alone, then it came back this morning and after attempting to repair and optimize automatically by adding “define(‘WP_ALLOW_REPAIR’, true);” to my wp-config, I’m getting this results :

    wp_users: 4 clients are using or haven’t closed the table properly
    wp_usermeta: 22 clients are using or haven’t closed the table properly
    wp_posts: 26 clients are using or haven’t closed the table properly
    wp_comments: 22 clients are using or haven’t closed the table properly
    wp_options: Table is marked as crashed
    wp_postmeta: 60 clients are using or haven’t closed the table properly
    wp_terms: 5 clients are using or haven’t closed the table properly
    wp_term_taxonomy: 11 clients are using or haven’t closed the table properly
    wp_term_relationships: 18 clients are using or haven’t closed the table properly
    wp_termmeta: 3 clients are using or haven’t closed the table properly
    wp_commentmeta: 1 client is using or hasn’t closed the table properly

    Please can anyone help?

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

Viewing 1 replies (of 1 total)
  • It is directly related to the DATABASE. Make sure the database details are correct in the given fields.

    
    /** The name of the database for WordPress */
    define( 'DB_NAME', 'YOUR_DATABASE_NAME');
    
    /** MySQL database username */
    define( 'DB_USER', 'YOUR_DATABASE_USERNAME');
    
    /** MySQL database password */
    define( 'DB_PASSWORD', 'YOUR_DATABASE_PASSWORD');
    
    /** MySQL hostname */
    define( 'DB_HOST', 'localhost');
    

    Resource – https://wphuntrz.com/d/83-wordpress-error-establishing-a-database-connection

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