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

自作多情 提交于 2019-12-25 03:32:39

问题


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



来源:https://stackoverflow.com/questions/2343647/access-denied-for-user-speedycm-rootlocalhost-to-database-speedycms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!