Support » Fixing WordPress » Database connection

  • I recently did a fresh install of wordpress, upgrading to 2.2. So I have to connect it to my Mysql database, and I’m doing the whole wp_config deal. I got all the stuff right after a couple tries, yet my website is still giving an error saying that there’s nothing at localhost,

    Here’s what it says (usernames and passwords edited out)
    Perl $dbh = DBI->connect(“DBI:mysql:databasename:localhost”,”username”,”password”);
    PHP $dbh=mysql_connect (“localhost”, “hostname”, “password”) or die (‘I cannot connect to the database because: ‘ . mysql_error());
    mysql_select_db (“hostname”);

  • The topic ‘Database connection’ is closed to new replies.