I tried to access the index page of my website: index.php, via this link: localhost:80/web/index.php. This brought me to a blank page on chrome that shows the error result:
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.
I checked the "simplecrm.log" file, it showed me the error:
Could not connect to DB server localhost as jobportal. port : Access denied for user 'jobportal'@'localhost' (using password: YES)
I have scoured the internet for answers, especially:
- https://www.ostraining.com/blog/coding/error-1045-phpmyadmin/
- MySQL said: Documentation #1045 - Access denied for user 'root'@'localhost' (using password: NO)
- #1045 - Access denied for user 'root'@'localhost' (using password: YES)
But these answers only show the root user, while my issue refers to the "jobportal" user. I did try the solutions given but I still can't solve this issue.
Here is the code in 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();
jobportal
? Did you give that new account access to the database you are using? Did you give that account the same password you are using in your code? – RiggsFollyconfig.inc.php
file. You can use any valid UserId/Password pair to login to MySQL from phpMyAdmin. – RiggsFolly