• I was following this tutorial for installing a wordpress website.
    I had performed all steps successfully, but after 9:27 when I typed my URL into my browser, I got the message “Error establishing a database connection”

    Please help . What am I doing wrong? or is heir any simple way to install wordpress that I should be doing?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello Dremotion,
    I don’t know what this tutorial explained. But, I am pretty sure that your wp-config.php file not configured with proper credentials.

    • Go to your hosting account, and in Database section –
      Check your server, database, username, password. Write it down on a paper or create a text file for it.
    • Using any free FTP client (like filezilla), download your wp-config.php file on your desktop.
    • Open wp-config.php in a text editor, and make change related values for your database
    • define( 'DB_NAME',     'database_name_here' );
      define( 'DB_USER',     'username_here' );
      define( 'DB_PASSWORD', 'password_here' );
      define( 'DB_HOST',     'server_name_here' );
    • After editing your wp-config.php, using FTP client – upload back to your webserver

    I hope your wordpress installation will be up and running this way.

    At 2:54 in the vid, he says to save the information created for the database connection … did you do this? ??

    Also note that the generated info has double quotes for the values; however, when you copy and paste into the wp-config file, use ONLY the actual data and NOT the double quotes! There are single quotes already supplied in the wp-config file and that is what HAS to be there, no spaces on either end. The values must look like what Rajat has shown.

    Triple check your file that this is in fact how it is set up ??

    Note also that you can edit the wp-config.php from the control panel.

    From the Main screen, click the “Another File Manager” icon:

    – double click the public_html folder
    – single click the wp-config.php file to select it
    – click the Edit link in the left sidebar under File and Folder Tasks
    – triple check the values! ??
    – when you are sure they are correct, click the “Opslaan en afsluiten” (Save & Exit) link in the upper left

    Thread Starter dremotion

    (@dremotion)

    I did performed all the steps exactly as shown till 9:27.
    Yes I did took care of single quotes, and I even made changes wp-config file correctly.
    Even I took care to edit the file in Notepad++ and not windows notepad.
    I did follow the exact same steps. Not even one single change.
    That is why I am stunned with this problem that I encountered.
    Please help.

    If you are still getting the db connection error, then that means one or both of two things:

    – the connection details are incorrect
    – the db server is not running

    Some suggestions:

    – one thing I noticed in the vid is that he did not say to save the wp-config file after editing it; at 5:58 he says to just exit out of the editor; however, you can see – and hear – that he did a keyboard save as the tab in NP++ changed from red to blue; so I hope you didn’t follow the audio instructions to the word and that you did in fact save the changes! ??

    – verify again that the connection details are exactly as the ones that were generated when you created the db; make sure you are using the password that you entered when creating the DATABASE

    – if you still get the error after checking all this, perhaps contact their support.

    Remember, all it takes for this to NOT work is something as simple as one space where it’s not supposed to be ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cannot install wordpress. Get the following message.’ is closed to new replies.