Error establishing a database connection-Godaddy
-
Hello today I have uploaded all my wp files to godaddy host then ,I went through mysql database wizard then typed maindbadmin as a database name.In second step ,asked me to type username and password ,I typed mainuseradmin as an username and typed also the password.then in last steps ? have added user to database and choosed all priviliges
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘maindbadmin’);/** MySQL database username */
define(‘DB_USER’, ‘mainuseradmin’);/** MySQL database password */
define(‘DB_PASSWORD’, ‘xxx’);/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);/** Database Charset to use in creating database tables. */
define(‘DB_CHARSET’, ‘utf8’);/** The Database Collate type. Don’t change this if in doubt. */
define(‘DB_COLLATE’, ”);I have changed my wpconfig like this but still ? am getting Error establishing a database connection.I have checked other threads on forum but couldnt find any solution
Note:I have used localhost for hostname because here it is written that
https://www.godaddy.com/help/what-is-the-name-of-my-hosting-accounts-relay-server-953
- The topic ‘Error establishing a database connection-Godaddy’ is closed to new replies.