Edit wp-config.php To Add WordPress Database Credentials | WP Learning Lab

Php

Video is ready, Click Here to View ×


Download our exclusive 10-Point WP Hardening Checklist: http://bit.ly/10point-wordpress-hardening-checklist
Edit wp-config.php To Add WordPress Database Credentials | WP Learning Lab

In another video (here: https://youtu.be/wtG1IJ1Wbvs) I showed you how to create a MySQL database for your WordPress site. In this video I’m going to show you how to edit wp-config.php file to include the database credentials.

Although many people will be intimidated by it, editing wp-config.php is quite easy…

15 thoughts on “Edit wp-config.php To Add WordPress Database Credentials | WP Learning Lab

  1. I did all of this and got the info from your last video but when I go to my website, I get this message ; Error establishing a database connection ; do you know what I might be missing?

  2. why do we want to store all this vital information in a config file? I am being hacked over and over each and every couple of hours on 17 websites I am being attacked. I have firewall from godaddy sucuri and it is useless. I am so exausted for the past week and a month before that I am deleting hundreds of files manually, hardening, scanning, changing passwords, I even rebuilt everything on a new hosting, same problem. Doesn't this info being in the sites files make you more vulnerable?

  3. thanks for your tutorial but i have this problem can i got any help:

    I just moved my site from hosting A to hosting B server..

    I copied the DB and the Files
    Created a new DB and imported it..

    when I go to the site it has a window to download a file

    What did I miss?? Can’t figure this out..

    <?php
    /**
    * Front to the WordPress application. This file doesn't do anything, but loads
    * wp-blog-header.php which does and tells WordPress to load the theme.
    *
    * @package WordPress
    */

    /**
    * Tells WordPress to load the WordPress theme and output it.
    *
    * @var bool
    */
    define('WP_USE_THEMES', true);

    /** Loads the WordPress Environment and Template */
    require( dirname( _FILE_ ) . '/wp-blog-header.php' );

  4. thank you so much, I was able to get my site back & saved $$$ to get my hosting company restore it, which I had already pay them to restore b4. Great videos, clear to listen. Keep up the great job. Also tks to people like you that post free tutorials.

  5. Great video…Hi there. I am having an issue logging in my WordPress Admin. Just wanna know if wp-config.php entries such as "DB name", "DB username", etc. are Case Sensitive. Thanks in advance…

  6. Hey you know, I've changed the wp-config-sample to wp-config.php but it said:
    "Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file to your WordPress installation."

Leave a Reply

Your email address will not be published. Required fields are marked *