1
votes

I am working with a managed server from 1&1 and I am trying to manually install WordPress with no luck. I went and downloaded the WP core files, uploaded them via FTP and then went into mySQL and created the database and username/password etc. and assigned the privileges. When I try to install wordpress via "www.example.com/wp-admin/install.php", I continuously receive the error:

Error establishing a database connection

I tried everything and triple checked my user,password, etc.

Here is my credentials (Password is hidden):

enter image description here

enter image description here

2
can you give us a little more info about what you are using as the connection params (blank out the password of course). - Dan Hastings
did you try and delete the wp_config file? and let wp write that for u? - Masivuye Cokile
yeah i tried deleting and letting it write it but it didnt work. - Tom

2 Answers

0
votes
// ** MySQL settings ** //
/** The name of the database for WordPress */
define('DB_NAME', 'yourdb');

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

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

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

Host name is always a localhost. for check your database credential is correct or not please feel a wrong value @ let me know I am here

0
votes

Try use 127.0.0.1 instead of localhost as the db host. Had the same issue and this fixed it for me.