gpt4 book ai didi

PHP 错误 : Access denied for user 'jobportal' @'localhost' (using password: YES)

转载 作者:行者123 更新时间:2023-11-29 02:42:58 24 4
gpt4 key购买 nike

我试图通过以下链接访问我网站的索引页:index.php:本地主机:80/web/index.php。这将我带到了 chrome 上显示错误结果的空白页面:

Warning: Declaration of SugarDateTime::setTime($hour, $minute, $sec = 0) should be compatible with DateTime::setTime($hour, $minute, $second = NULL, $microseconds = NULL) in C:\xampp\htdocs\uat\include\SugarDateTime.php on line 692 Could not connect to the database. Please refer to simplecrm.log for details.

我检查了“simplecrm.log”文件,它向我显示了错误:

Could not connect to DB server localhost as jobportal. port : Access denied for user 'jobportal'@'localhost' (using password: YES)

我已经在互联网上搜索了答案,尤其是:

但这些答案只显示 root 用户,而我的问题是指“jobportal”用户。我确实尝试了给出的解决方案,但我仍然无法解决这个问题。

这是 index.php 中的代码:

include ('include/MVC/preDispatch.php');
$startTime = microtime(true);
require_once('include/entry.php');
ob_start();
require_once('include/MVC/SugarApp.php');
$app = new SugarApp();
$app->startSession();
$app->execute();

最佳答案

如果你设置了你的数据库密码然后这样写

$db_name = 'dbname';
$db_pass = 'yourPasss';

Else
$db_name = 'dbname';
$db_pass = ''; //empty

关于PHP 错误 : Access denied for user 'jobportal' @'localhost' (using password: YES),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47566680/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com