Viewing 7 replies - 1 through 7 (of 7 total)
  • It’s showing a database connection error.

    I’d read below for a few possible solutions, this should be a fairly easy fix if you follow the instructions.

    http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/

    Thread Starter Stephen Mosher

    (@stephen-mosher)

    Thank you David. I will look into it right now.

    You can also rename the plugin directory if a plugin is causing the problem.

    Thread Starter Stephen Mosher

    (@stephen-mosher)

    The problem in implementing any of the solution is that wrodpress will not allow me to log on to the admin of my site… I go to the:

    http://stephenmosher.com/wp-login.php

    and I get the SAME database error – so I can’t make changes to any code or tech on my website.

    I am screwed basically here.

    Do you have FTP access?

    You will have to edit the wp-config.php file.

    If you have Skype or Line I can try and help.

    As long as you have these details filled out properly (XXXXXXXXX, YYYYYYYYY, ZZZZZZZZZZ, server.whatever-you-need.com) everything should connect unless the database was deleted from the server or something else weird happened.

    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'XXXXXXXXX');
    
    /** MySQL database username */
    define('DB_USER', 'YYYYYYYYY');
    
    /** MySQL database password */
    define('DB_PASSWORD', 'ZZZZZZZZZZ');
    
    /** MySQL hostname */
    define('DB_HOST', 'server.whatever-you-need.com');

    I just saw you got the settings right and your page shows up now ^^

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Database connection error’ is closed to new replies.