用户“speedycm_root”@“localhost”的访问被拒绝到数据库“speedycms”;
一整天都在尝试使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
顾名思义,指定用户被拒绝访问指定数据库。
确保数据库中存在用户, 授予数据库访问权限并使用正确的密码,如果有的话。难道是用户名是
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