Error during installation - variable $dbPort has no effect
Hello,
I have a config.php file with the following content (related to db):
$dbHost = 'myhost'; $dbUser = 'user'; $dbPass = 'password'; $dbName = 'sendy'; $dbPort = 9010;
When I access Sendy's URL (first time), I get the message:
"Can't connect to database There is a problem connecting to the database. Please try again later."
In Apache error log, I see the message:
PHP Warning: mysqli::mysqli(): [2002] Connection timed out (trying to connect via tcp://myhost:3306) in /opt/httpd/sendy/htdocs/includes/functions.php on line 6
It seems that the port I set in config.php is not being used during the installation.
How can I fix it?
Regards,
Thiago Faria
This discussion has been closed.
Comments
Hi @thiagofaria,
Try appending your port number to the host, eg.:
myhost:9010
See if it works?
Thanks.
Best regards,
Ben
Hi Ben, it worked!
Thank you.
Thiago Faria