Your wp-config.php file stores all of your config variables for your Wordpress site. If someone has access to this file they will be able to see your database username and password. When you first install Wordpress there is a default wp-config-sample.php file which you need to rename and modify. To keep this secure you can move this file outside of the Wordpress root folder, Wordpress is able to find this file one level up from the root. Another way to secure the wp-config.php file is to use htaccess to deny access for everyone trying to access it. To use htaccess to deny access, add the following snippet in your htaccess file.
Deny from all
You can even use this same technique to help protect your htaccess file, just add the following to your htaccess file to protect itself.
deny from all