• Hi there,

    I’ve set up wordpress before on my local system (Mac on Yosemite) but for some reason now I can’t get it to work. I am using MAMP.

    A fresh download, unzipped and opened in my browser simply displays a white screen.

    Then when I make a new database and a new user, I edit the config-sample.php file to direct it to the new database changing the db name, user and password and i of course rename the file to wp-config.php but i get an error establishing connection to database error.

    Using the debug function, i get the following:

    Warning: mysqli_real_connect(): (28000/1045): Access denied for user ‘‘test_user’’@’localhost’ (using password: YES) in /Users/benjamin/Desktop/WWW/wp-test/wp-includes/wp-db.php on line 1386

    Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /Users/benjamin/Desktop/WWW/wp-test/wp-includes/wp-db.php on line 1416

    Warning: mysql_connect(): Access denied for user ‘‘test_user’’@’localhost’ (using password: YES) in /Users/benjamin/Desktop/WWW/wp-test/wp-includes/wp-db.php on line 1416

    my user is ‘test_user’, the folder containing the wordpress files is ‘wp-test’. it may be a mamp issue in which case tell me to bugger off but i installed drupal the other day and all was fine.

    Can anyone help me??
    Thanks…

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Access denied for user ‘‘test_user’’@’localhost’ (using password: YES)

    Doesn’t really get any more clear than that. You have the wrong username and/or password in the wp-config.php file. That message is coming from your mySQL server, not WordPress.

    Thread Starter froggingbob

    (@froggingbob)

    I appreciate the input and it would be nice if it were as simple as that but I have checked the password, made new users with new passwords and edited the wp-config.php file accordingly and I still have the same problem. Even with root user, root password, i get the same error.

    I wouldn’t go through the trouble of adding the debug function and starting a new thread if it were as stupid a mistake as that although i realise that are a lot of newbies that could make that mistake. I am not a newbie, I have made numerous wordpress sites but this has got me stumped. I have searched the internet for answers to no avail.

    Also, with a fresh wordpress directory, i should get the wordpress installer without touching any of the files. I don’t get this, I get a white screen of doom/death/poop or whatever you want to call it.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘White Screen or Error Establishing Connection’ is closed to new replies.