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

Thanks! Share it with your friends!

URL

You disliked this video. Thanks for the feedback!

Sorry, only registred users can create playlists.

ULTRAFAST, CHEAP, SCALABLE AND RELIABLE! WE STRONGLY RECOMMEND ACCU WEB HOSTING COMPANY

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

Watch Wordpress WPLearningLab Video: Edit wp-config.php To Add WordPress Database Credentials | WP Learning Lab.
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 once you know the steps. So I encourage you try.

The first thing you must do to edit config file is log into the root directory of your WordPress site. You can do this via FTP or the file manager in your hosting account, whatever you're most comfortable with.

Find a file called wp-config-sample.php and open it for editing wp-config.php. Scroll down to where it says MySQL Settings. Just below that you will see three important entries:

1. define('DB_NAME', 'database_name_here');
2. define('DB_USER', 'username_here');
3. define('DB_PASSWORD', 'password_here');

Carefully replace database_name_here with the MySQL database name you created. Make sure that the single quotes stay, you only want to replace the text database_name_here.

Replace username_here with the username you created and replace password_here with the password you created.

That's all you need to install WordPress. You can save the file and exit or you can do a couple more tweaks that will make your site more secure.

If you want to exit now, simply save the file and close the text editor. Then make sure you change the file name from wp-config-sample.php to wp-config.php.

If you want to make some security tweaks then keep reading.

Scroll down in the wp config file to where it says Authentication Unique Keys and Salts. Keys and salts are unique characters that WordPress uses to make usernames and passwords extra hard for hackers to guess.

Go to the URL that is the instructions for the keys and salts (https://api.wordpress.org/secret-key/1.1/salt/). Refresh the page that loads a few times and then copy and paste the block of code that appears on that page. Paste that code block into the wp-config.php file replacing the demo code that exists. And you're done with the unique keys and salts.

After that you can scroll down to where it says WordPress Database Table Prefix. By default the database prefix is wp_ and every hacker knows that. Every hacker also knows that 99% of webmasters don't change the prefix. Hackers can take advantage of this information to gain access to your database. This is easily avoided.

Simply change the database table prefix to something random. You can only use letters and numbers and the underscore needs to be kept at the end of the prefix. For example, instead of wp_ you could make the prefix be tomfoolery_. The latter is much more difficult for a hacker to guess.

That's it for basic wp-config.php security. You can now save the file, exit and rename it to wp-config.php.

I hope this information helps you! If you have any questions leave a comment below or ping me @WPLearningLab on Twitter.

All videos in the WP Learning Lab WordPress Installation Series:

1. WordPress Installation Introduction https://youtu.be/7jiMRKYcjq0

2. Buying A Domain Name For Your Website (From GoDaddy) - Tips & Tricks of the Pros https://youtu.be/qThIPLjjW5Y

3. WordPress Hosting: Buying A (BlueHost) Hosting Account for Your Website https://youtu.be/Amlw0VKbtRU

4. Setting Name Servers In Your GoDaddy Domain Registrar Account https://youtu.be/mlWBm4nL3R8

5. Create Add On Domains via cPanel https://youtu.be/vOjKns89Rj0

6. Downloading and Uploading WordPress.org (Self Hosted WordPress) Files https://youtu.be/O6IgVyxusro

7. Create a MySQL Database for your WordPress Site via cPanel https://youtu.be/wtG1IJ1Wbvs

8. Edit wp-config.php To Add WordPress Database Credentials https://youtu.be/QRKigi4ek_g

9. WordPress Installation Form & Logging In For The First Time https://youtu.be/qDGRcGTFOjs

10. WordPress One Click Install https://youtu.be/5L5fGL5egGk

11. Create A Custom Email Address For Your Website Via cPanel https://youtu.be/q4_1CeSU8XM

12. Forward Your Custom Email Address via cPanel https://youtu.be/n7sm8b5gUVY

13. WordPress Installation Series Conclusion & Next Steps https://youtu.be/ZJ3-gf3c-9o

--------------

If you want more excellent WordPress information check out our website where we post WordPress tutorials daily.

http://wplearninglab.com/

Connect with us:

WP Learning Lab Channel: http://www.youtube.com/subscription_center?add_user=wplearninglab

Facebook: https://www.facebook.com/wplearninglab

Twitter: https://twitter.com/WPLearningLab

Google Plus: http://google.com/+Wplearninglab

Pinterest: http://www.pinterest.com/wplearninglab/

Published:
Category: Wordpress WPLearningLab
96 Views

Related Videos

  • Limit WordPress Revisions In wp-config - Revision Control Speeds Up Database | WP Learning Lab

    Limit WordPress Revisions In wp-config - Revision Control Speeds Up Database | WP Learning Lab

    by Best Webhosting Added 75 Views / 0 Likes

    Grab Your Free 17-Point WordPress Pre-Launch PDF Checklist: http://vid.io/xqRL Download our exclusive 10-Point WP Hardening Checklist: http://bit.ly/10point-wordpress-hardening-checklist Limit WordPress Revsions In wp-config - Revision Control Speeds Up Database | WP Learning Lab define( 'WP_POST_REVISIONS', X ); In this tutorial you will learn about the WordPress revision control system (also known as WordPress version control). This system keeps Wor

  • How to Edit wp-config.php File in WordPress

    How to Edit wp-config.php File in WordPress

    by Best Webhosting Added 71 Views / 0 Likes

    Did you ever read a tutorial that wanted you to edit your wp-config file and you don't know what it is? In this video we will show you how to edit the wp-config.php file. If you liked this video, then please Like and consider subscribing to our channel for more WordPress videos. Text version of this tutorial: http://www.wpbeginner.com/beginners-guide/how-to-edit-wp-config-php-file-in-wordpress/ Check us out on Facebook: https://www.facebook.com/wpbegi

  • Protect Your WordPress WP-Config.php Via .htaccess - Hacker Proofing Your Site | WP Learning Lab

    Protect Your WordPress WP-Config.php Via .htaccess - Hacker Proofing Your Site | WP Learning Lab

    by Best Webhosting Added 98 Views / 0 Likes

    Grab Your Free 17-Point WordPress Pre-Launch PDF Checklist: http://vid.io/xqRL Download our exclusive 10-Point WP Hardening Checklist: http://bit.ly/10point-wordpress-hardening-checklist Protect Your WordPress WP-Config.php Via .htaccess - Hacker Proofing Your Site | WP Learning Lab # BEGIN Protect the wp-config.php file (left pointy bracket)files wp-config.php(right pointy bracket) order allow,deny deny from all (left pointy bracket)/files(right poin

  • Disable WordPress Core, Theme & Plugin Updates Via wp-config.php | WP Learning Lab

    Disable WordPress Core, Theme & Plugin Updates Via wp-config.php | WP Learning Lab

    by Best Webhosting Added 88 Views / 0 Likes

    Grab Your Free 17-Point WordPress Pre-Launch PDF Checklist: http://vid.io/xqRL Download our exclusive 10-Point WP Hardening Checklist: http://bit.ly/10point-wordpress-hardening-checklist define ( 'WP_AUTO_UPDATE_CORE', false ); In this tutorial you will discover how to disable WordPress updates, via the wp-config.php file. If you want to disable WordPress updates using a simple plugin check this tutorial: https://youtu.be/pU2GXsJ-tbg The biggest reaso

  • Popular Create a MySQL Database for your WordPress Site via cPanel | WP Learning Lab

    Create a MySQL Database for your WordPress Site via cPanel | WP Learning Lab

    by Best Webhosting Added 104 Views / 0 Likes

    Download our exclusive 10-Point WP Hardening Checklist: http://bit.ly/10point-wordpress-hardening-checklist Create a MySQL Database for your WordPress Site via cPanel | WP Learning Lab Although this video specific to WordPress users, it is also a great MySQL beginners tutorial. You won't actually go into phpMyAdmin or interact with the database directly so there's no danger of breaking very much. The first thing you need we'll do in this MySQL tutoria

  • How To Manually Backup WordPress MySQL Database, Files and Folders | WP Learning Lab

    How To Manually Backup WordPress MySQL Database, Files and Folders | WP Learning Lab

    by Best Webhosting Added 73 Views / 0 Likes

    How To Manually Backup WordPress MySQL Database, Files and Folders https://youtu.be/cfLFO7kiS2Y The other half of this tutorial, how to manually restore from a backup: https://www.youtube.com/watch?v=7RazMUnBFnQ&list=PLlgSvQqMfii4qdGkBEavOHwqRqEzhhk5d In this WordPress tutorial, I'm going to show you how to manually backup WordPress MySQL database, files and folders. Being able to backup your website is important because you will want to do this befor

  • Change DB Prefix WordPress Plugin - Secure Your WordPress MySQL Database | WP Learning Lab

    Change DB Prefix WordPress Plugin - Secure Your WordPress MySQL Database | WP Learning Lab

    by Best Webhosting Added 85 Views / 0 Likes

    Grab Your Free 17-Point WordPress Pre-Launch PDF Checklist: http://vid.io/xqRL Download our exclusive 10-Point WP Hardening Checklist: http://bit.ly/10point-wordpress-hardening-checklist Change DB Prefix WordPress Plugin - Secure Your WordPress MySQL Database | WP Learning Lab In this tutorial I'm going to show you how to use the Change DB Prefix WordPress plugin to improve MySQL database security. Anyone running a WordPress-based website needs to con

  • Manually Restore WordPress Site From Backup (Database, Files & Folders) | WP Learning Lab

    Manually Restore WordPress Site From Backup (Database, Files & Folders) | WP Learning Lab

    by Best Webhosting Added 78 Views / 0 Likes

    Manually Restore WordPress Site From Backup (Database, Files & Folders) https://youtu.be/7RazMUnBFnQ Exclusive for WPLearningLab viewers, up to 50% off hosting: https://wplearninglab.com/wordpress-hosting-offer/ Download our exclusive 10-Point WP Hardening Checklist: http://bit.ly/10point-wordpress-hardening-checklist In this tutorial I'm going to show you how to manually restore your WordPress site from a backup. We will restore the database, files a

  • WordPress Salts, Unique Keys & Database Prefix - WP Hack Prevention & Security | WP Learning Lab

    WordPress Salts, Unique Keys & Database Prefix - WP Hack Prevention & Security | WP Learning Lab

    by Best Webhosting Added 90 Views / 0 Likes

    Grab Your Free 17-Point WordPress Pre-Launch PDF Checklist: http://vid.io/xqRL Download our exclusive 10-Point WP Hardening Checklist: http://bit.ly/10point-wordpress-hardening-checklist WordPress Salts, Unique Keys & Database Prefix - WP Hack Prevention & Security | WP Learning Lab In this tutorial I show you how to add WordPress unique keys and salts to your WP-Config.php file and how to change the WordPress database prefix. Both of these are import

  • Popular 4 Places To Edit WordPress CSS | WP Learning Lab

    4 Places To Edit WordPress CSS | WP Learning Lab

    by Best Webhosting Added 103 Views / 0 Likes

    Grab Your Free 17-Point WordPress Pre-Launch PDF Checklist: http://vid.io/xqRL 4 Places To Edit WordPress CSS | WP Learning Lab To edit WordPress CSS you first need to know all the places you can find CSS. There are 4 common places. You may not have all these locations on your website because some of them are theme-dependent. The possible CSS locations are: 1. The WordPress theme or child theme stylesheet (this one you have for sure) 2. The theme opti

  • How To Edit The WordPress Header | WP Learning Lab

    How To Edit The WordPress Header | WP Learning Lab

    by Best Webhosting Added 74 Views / 0 Likes

    Grab Your Free 17-Point WordPress Pre-Launch PDF Checklist: http://vid.io/xqRL How To Edit The WordPress Header | WP Learning Lab The WordPress header is one of those place where a lot of important things happen. Scripts are called, integrations are set up and validated, stylesheets are imported, and so on. Usually, leaving the header.php file alone is the best plan, but sometimes you have to make additions or changes. Before you do, keep in mind that

  • How To Edit The WordPress Footer | WP Learning Lab

    How To Edit The WordPress Footer | WP Learning Lab

    by Best Webhosting Added 88 Views / 0 Likes

    Grab Your Free 17-Point WordPress Pre-Launch PDF Checklist: http://vid.io/xqRL How To Edit The WordPress Footer | WP Learning Lab To edit the WordPress footer all you have multiple options available to you. You can use the WordPress editor, which is what I show you in this video. You can also edit the footer in the cPanel file manager and via FTP. No matter which method you use to edit your footer, he trick is open the footer.php file. That is where a

RECOMMENDED WEB HOSTING

FASTCOMET

Fastcomet

HOSTGATOR

HOSTGATOR

BLUEHOST

BLUEHOST

SITEGROUND

SITEGROUND

A2 HOSTING

A2 HOSTING

HOSTINGER

HOSTINGER

DREAMHOST

DREAMHOST

ACCU WEBHOSTING

ACCU WEBHOSTING

MILESWEB

MILESWEB

HOSTPAPA

HOSTPAPA


RSS