• hi i have tried all day with all the repair options but still get this message
    Error establishing a database connection

    can anyone see what is wrong with this
    // ** MySQL settings ** //
    define(‘DB_NAME’, ‘comicinf_comic’, ‘ ‘); // The name of the database
    define(‘DB_USER’, [redacted], ‘ ‘); // Your MySQL username
    define(‘DB_PASSWORD’, [redacted], ‘ ‘); // …and password
    define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value

    thanks if i can be helped
    http://comicbooker.info

Viewing 9 replies - 1 through 9 (of 9 total)
  • It seems the username, database name or password doesn’t match with the database you created. Please check them again. You should enter these information exactly the same as the database you created.

    You need to check your database details with your hosts.

    And never, ever, post sensitive information on a public forum. You have just given hackers across the world full access to your database. Change your database password and username NOW!

    Thread Starter colin136

    (@colin136)

    sorry about that will do

    Thread Starter colin136

    (@colin136)

    well i changed all that and redone database but all is still the same and still get the same error

    Thread Starter colin136

    (@colin136)

    just thinking i may be putting details in wrong place can somebody point it out to me
    // ** MySQL settings ** //
    define(‘DB_NAME’, ‘ ‘); // The name of the database
    define(‘DB_USER’, ‘ ‘); // Your MySQL username
    define(‘DB_PASSWORD’, ‘ ‘); // …and password

    thanks if you can

    check your database details with your hosts.

    While I was dealing with all of that, I used the cPanel at my host to set the DB prefix, username and password, then added that info to wp-config.php and all was well.

    Thread Starter colin136

    (@colin136)

    yep thats the way i went but i must be reading what i see on the cPanel the wrong way cos still not getting there

    In my own case, it all looks like this:

    /** The mysite.com database for WordPress */
    define('DB_NAME', 'serveraccountname_dbname_prefix');
    /** MySQL database username */
    define('DB_USER', 'serveraccountname_prefix');
    /** MySQL database password */
    define('DB_PASSWORD', '~~~~~~~~~~~~~~~~~~~~');

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘database’ is closed to new replies.