Know about wp-config.php file
The configuration file for your wordpress blog
The wp-config.php file in wordpress is your friend . It has some of the most important details of your blog, including the database name and database credentials (username and password).
It has some other variables including those variables used for one time activities to change your blog configurations.
The wp-config.php is the most important file that has your blog settings and configurations. It is present in the root folder where your blog is installed.
Lets discuss on the most commonly used variables from wp-config.php
define( ‘DB_USER’, ‘admin’ );
define( ‘DB_PASSWORD’, ‘passwordhere’ );
your database username and password is shown here, this is not wp-admin username/password.
If you need to access your Data Base via phpMyAdmin URL you can use these db credentials. These admin username and password are given by you when you install wordpress in the firstplace. New script installers have default hard passwords used without your input. You need to save them or check here and save your DB credentials.
define( ‘DB_HOST’, ‘localhost’ );
always remains localhost should never be changed
$table_prefix = ‘wp_’;
The prefix added to your tables in the database. If you have multiple database and lot of WordPress installations, you can spot the particular tables used by the current blog using these.
define( ‘WP_DEBUG’, false );
This should always be false. When a wordpress developer is working to fix for an open issue/error , this may temporarily be turned to true , but after its debugged to find the issue, it should be turned back to false. Leaving it true may expose your blog vulnerabilities to hackers.