Get answers quicker by searching

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Error during installation - variable $dbPort has no effect
  • Vote Up0Vote Down thiagofariathiagofaria
    Posts: 3Sendy user

    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

  • 2 Comments
  • Vote Up0Vote Down BenBen
    Posts: 3,489Sendy support

    Hi @thiagofaria,

    Try appending your port number to the host, eg.:

    myhost:9010

    See if it works?

    Thanks.

    Best regards,
    Ben

  • Vote Up0Vote Down thiagofariathiagofaria
    Posts: 3Sendy user

    Hi Ben, it worked!

    Thank you.

    Thiago Faria

This discussion has been closed.
All Discussions