2017-06-05 160 views
-1

我试图登录到我的网站,但我得到这个错误登录WordPress的问题:警告:mysql_connect()函数[function.mysql-连接]:拒绝访问用户

警告:mysql_connect()函数[ function.mysql-连接]:访问被拒绝的用户 'edwardl_wp1user' @ '本地主机'(使用密码:是)在/home1/edwardl8/public_html/wp-includes/wp-db.php线1568

这里是行1568:

$this->dbh = mysql_connect($this->dbhost, $this->dbuser, $this 
>dbpassword, $new_link, $client_flags); 
} else { 
$this->dbh = @mysql_connect($this->dbhost, $this->dbuser, 
$this->dbpassword, $new_link, $client_flags); 
} 

我正确地写了我的密码,但它仍然无法正常工作。

+0

在代码段的第一行'$ this'和'> dbpassword'之间是否存在缺失? – Pang

回答

0

检查您的wp-config.php中的数据库前缀是否正确。有时候会触发这样的错误。

相关问题