I have setup the database details according to ''Database_Connecting'' with the details of my webhosting package. But I would like to use (develop) the software locally with XAMPP first.
The code appears after I generated the code and visit the web application.
The code of the Database_Connecting event is:
// MySQL/PostgreSQL
function Database_Connecting(&$info) {
//var_dump($info);
// assume the scripts are generated with connection info for local PC
if (ew_CurrentUserIP() <> "127.0.0.1") { // not connecting to local PC
// connect to the production database
$info["host"] = "localhost";
$info["user"] = “usernameâ€;
$info["pass"] = “passwordâ€;
$info["db"] = “databaseâ€;
}
}
When I replace this code to the default settings, no error appears.
This is the error message:
Failed to connect to uwportaal_com_beta at localhost:3306. Error: Access denied for user 'uwpo_com_beta'@'localhost' (using password: YES)
Failed to connect to uwportaal_com_beta at localhost:3306. Error: Access denied for user 'uwpo_com_beta'@'localhost' (using password: YES)