Reputation: 15
I have tasked with a job to update a wordpress site but I do not seem to be able to find the Username and password to log into the database. The wp-config.php is not there all I can see is the wp-config-sample.php I have checked to see if there are any hidden files.
Is there a particular word that I could search for to easily find the connection string in a php file? I am using search in file function in notpad++
Upvotes: 1
Views: 5189
Reputation: 3607
As you can find in the documentation, the following strings are used to define the database connection:
/** The name of the database for WordPress */
define( 'DB_NAME', 'database_name_here' );
/** MySQL database username */
define( 'DB_USER', 'username_here' );
/** MySQL database password */
define( 'DB_PASSWORD', 'password_here' );
/** MySQL hostname */
define( 'DB_HOST', 'localhost' );
I hope this can help you.
Upvotes: 1