简体   繁体   中英

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

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

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

Make sure the user exists in the database, was GRANT ed 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM