Showing results for 
Show  only  | Search instead for 
Did you mean: 

Connecting to a MySQL database with a form. Error establishing a database connection.

Error establishing a database connection


My site show this error what can i do? Please help me.

Helper IV

Hi @dasdemirov - generally that message means that the database information in your wp-config.php file is incorrect.  Check to make sure you have the correct information for the database username,  password and hostname:


/** MySQL database username */
define('DB_USER', 'username_here');

/** MySQL database password */
define('DB_PASSWORD', 'password_here');

/** MySQL hostname */
define('DB_HOST', 'localhost');






Need some help with WordPress? Check out Site Doctor 911
Worry-Free WordPress Support - So You Can Focus On The Important Stuff

Hello i have a problem with my site. My site is working bad, it is so late opening and very hard open. Please solve this problem. Thanks