用户“speedycm_root”@“localhost”的访问被拒绝到数据库“speedycms”;

发布于 2024-08-23 06:40:46 字数 652 浏览 8 评论 0原文

一整天都在尝试使用 uk2.net 设置网络服务器,但当我尝试登录时,我不断收到以下错误:

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";

// 省略了密码,但它是正确的,

$password_speedycms = "___________";

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

我正在使用 uk2.net 托管顺便说一句

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光病人 2024-08-30 06:40:47

顾名思义,指定用户被拒绝访问指定数据库。

确保数据库中存在用户授予数据库访问权限并使用正确的密码,如果有的话。难道是用户名是 speedycms_root (注意 s)?

如果这没有帮助,请查看 访问被拒绝错误的原因

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文