goDaddy 网站上的数据库用户访问被拒绝 [英] Access denied for Database User at goDaddy website

查看:48
本文介绍了goDaddy 网站上的数据库用户访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从 Godaddy 查看我的网站.域名在其他地方注册,托管来自godaddy.更改 DNS 设置后,我在 Godaddy 中创建我的数据库并导入其中的所有表.之后,我创建了一个用户名并将其提供给所有特权.然后,当我尝试连接到数据库时,我遇到了错误

I am trying to view my website from godaddy. The domain name is registered on somewhere else and hosting is from godaddy. After changing DNS settings, I cretae my db in godaddy and import all tables in it. After that, i created a username and give it to all previleges. Then, when i tried to connect to database, i am facing error

Access denied for user 'myusername'@'ip-166-62-28-82.ip.secureserver.net' (using password: YES)  

db.php

<?php

$conn = mysql_connect("166.62.28.82", "myusername","mypassword", "arikai2_2" ) or die(mysql_error());

mysql_select_db("arikai2_2");

?>

推荐答案

您从哪里获得 dbhost 值?

Where did you get the dbhost value from?

在您的主机面板中,应该有一个部分,您可以在其中获取有关连接到数据库服务器及其数据库的正确详细信息.

In your hosting panel, there should be somewhere a section where you can get the right details about connecting to your database server and its databases.

如果您使用的是经典 goDaddy 托管,您可以在以下位置找到此信息:
数据库 > MySQL 部分 > 操作 > 详细信息
dbhost 位于此屏幕底部:主机名

If you are using the classic goDaddy hosting, you can find this info in the:
Databases > MySQL Section > Actions > Details
The dbhost is down at the bottom of this screen: Hostname

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

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