用户'speedycm_root'@'localhost'对数据库'speedycms'的访问被拒绝
问题描述:
试图整天使用uk2.net设置Web服务器,但尝试登录时始终收到以下错误消息:
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'
这是什么意思?
<?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);
?>
我正在使用uk2.net托管btw
i am using uk2.net hosting btw
答
这意味着它说的是,拒绝命名用户访问命名数据库.
It means what it says, the named user is denied access to the named database.
确保用户存在数据库 GRANT 访问数据库并使用正确的密码(如果有).可能是用户名speedycms_root
(注意s)吗?
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