Access denied for user 'speedycm_root'@

2019-09-16 15:06发布

问题:

been trying to set up a webserver with uk2.net all day but i keep receiving the following error when i try to log in:

Access denied for user 'speedycm_root'@'localhost' to database 'speedycms'

what could it mean?

<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_speedycms = "localhost";
$database_speedycms = "speedycm_database";
$username_speedycms = "speedycm_root";

// have omitted password but it is correct

$password_speedycms = "___________";

$speedycms = mysql_pconnect($hostname_speedycms, $username_speedycms, $password_speedycms) or trigger_error(mysql_error(),E_USER_ERROR); 
?>

i am using uk2.net hosting btw

回答1:

It means what it says, the named user is denied access to the named database.

Make sure the user exists in the database, was GRANTed access to the database and uses the correct password, if any. Could it be the username is speedycms_root (mind the s)?

If this won't help, go through Causes of Access Denied Errors