用户'speedycm_root'@'localhost'对数据库'speedycms'的访问被拒绝 [英] Access denied for user 'speedycm_root'@'localhost' to database 'speedycms'

查看:163
本文介绍了用户'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

这篇关于用户'speedycm_root'@'localhost'对数据库'speedycms'的访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆