[英]Access denied for user 'consult'@'localhost' (using password: NO)
I am using bluehost domain. 我正在使用bluehost域。 I want to connect database but I don't know password.
我想连接数据库,但是我不知道密码。 After the long war I found the username and localhost name.
经过漫长的战争,我找到了用户名和本地主机名。 I am a beginner.
我是初学者。 Help me to find the phpmyadmin password.
帮我找到phpmyadmin密码。
This my php database conection code.This code is worked in localhost. 这是我的php数据库连接代码。此代码在localhost中工作。
$link = mysql_connect('localhost', 'consult', '');
if (!$link) {
die('Not connected : ' . mysql_error());
}
// make foo the current db
$db_selected = mysql_select_db('consultv_hrms', $link);
if (!$db_selected) {
die ('Can\'t use foo : ' . mysql_error());
}
Only the admin can reset database password. 只有管理员可以重置数据库密码。 In this case you need to follow the instructions given by your hosting provider
在这种情况下,您需要按照托管提供商的指示进行操作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.