WordPress.org

Ready to get started?Download WordPress

Forums

Yet another mySQL problem (5 posts)

  1. thistle
    Member
    Posted 9 years ago #

    Error establishing a database connection! This probably means that the connection information in your wp-config.php file is incorrect. Double check it and try again.
    Are you sure you have the correct user/password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?
    PHP version 4.3.9
    MySQL version 4.0.22-standard
    My site is hosted on a great free host, shyper. http://www.shyper.com
    Wordpress install dir: http://bloom.shyper.com/blog
    // ** MySQL settings ** //
    define('DB_NAME', 'bloovesn_blog'); // The name of the database
    define('DB_USER', 'bloovesn_'); // Your MySQL username
    define('DB_PASSWORD', ********'); // ...and password
    define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
    The info is correct. Info provided by my host:
    Connection Strings
    Perl $dbh = DBI->connect("DBI:mysql:bloovesn_blog:localhost","bloovesn_","<PASSWORD HERE>");
    PHP $dbh=mysql_connect ("localhost", "bloovesn_", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
    mysql_select_db ("bloovesn_blog");
    What am I doing wrong?
    I am currently using CuteNews but it doesn't have much features...
    Therefore, I'm upgrading to WordPress
    Help would be appreciated! :)

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    define('DB_PASSWORD', ********');
    Is that a typo ? It should be
    define('DB_PASSWORD', '********');

  3. serendipity
    Member
    Posted 9 years ago #

    Another thing to try is to set the 'DB_USER' to 'bloovesn' without the underscore. I know it says so in the connection string provided by your hoster -- as it does in mine. But I've always used my username without the underscore and only recently realized that there should be one.

  4. moshu
    Member
    Posted 9 years ago #

    I was also wondering about the username. In my case I have to have something AFTER the "bloovesn_" part, like "bloovesn_something".

  5. thistle
    Member
    Posted 9 years ago #

    Thanks for your help! :) The '** was a typo. I rwemoved the underscore from my username and it worked.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.