problem with wordpress
junaid said 1 year, 1 month ago:
i was using WordPress and my ex co admin deleted all the data including uninstallation of the WordPress i restored all the data as i was guided by one of ur teammate but now m getting a message of “Error establishing a database connection” i restored the data of the wordpress i prevously installed
please help
sherrod said 1 year, 1 month ago:
@junaid,
It sounds line you simply need to modify the Connection string in the wp-config.php file.
Locating Your MySQL Database Connection String
Sherrod
junaid said 1 year, 1 month ago:
how can i modify the connection in the wp-confiq.php file
and what should be edited to get it done
JasonP said 1 year ago:
@junaid
When you edit the wp-cofig file, you will see the information required to connect to your database. It will look similar to this:
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘yourdatabasename’);
/** MySQL database username */
define(‘DB_USER’, ‘sameasyourdatabasename’);
/** MySQL database password */
define(‘DB_PASSWORD’, ‘password’);
/** MySQL hostname */
define(‘DB_HOST’, ‘database.hostedresource.com’);
All of this information can be found in the previous article that was provided.
Jason
3 min expected wait time