管理页面在orgfree中无法访问用户'root'@'localhost'拒绝访问?
当我将其托管在orgfree.com上时,我的管理页面不起作用。它显示:管理页面在orgfree中无法访问用户'root'@'localhost'拒绝访问?
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES)' in /home/vhosts/mysite.orgfree.com/admin/admin.php:39 Stack trace: #0 /home/vhosts/mysite.orgfree.com/admin/admin.php(39): PDO->__construct('mysql:host=loca...', 'root', 'pass') #1 {main} thrown in /home/vhosts/mysite.orgfree.com/admin/admin.php on line 39
我上线39检查了我的代码是
$db = new PDO('mysql:host='.$db_host.';dbname='.$db_database, $db_user, $db_pass);
我希望有人能帮助我。
这条消息说你不会有好名还是不错的密码尝试去的phpmyadmin和测试你的日志我觉得会被打破过
,如果你不觉得你的凭据重新安装你的mysql,如果你是在Linux上distrip该计划要求你通根,如果你在窗口默认为根通行证“”
好日子
谢谢先生!有用 :) – halle
你的用户名和密码是你的MySQL主机无效。 – Devon
先生,我该怎么办?我必须改变它? – halle
用户和密码均由免费虚拟主机提供,我可以更改吗? – halle