[RESOLVED] Connection to mysql database refused

What issue or error are you experiencing?

I’m trying to make a Joomla! 3 install on Local but on creating the db tables I get:
"#### Error

Could not connect to the database. Connector returned number: No connection could be made because the target machine actively refused it"

The reason for this is that I have a Joomla site I like to migrate to WP and I want to work on it locally rather then the live site.


What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

I created a Local WP site, removed all files under app/Public and unzipped the Joomla-3.10.12 file packet there.

First installation page comes up fine and submits ok to page 2 but there I run in to trouble and get error.


System Details

  • Local Version:
    Local 7.1.2

  • Operating System (OS) and OS version:
    Host is Windows 10
    tried with both nginx and apache, Php 8.1.9 and 8.2.8
    also mysql 5.7 and 8.0.16

all same result


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)
local-logs.zip (25.3 KB)

I checked the log files but couldn’t find anything relevant. I have only dealt with this today 12 Aug

Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

Ok so I found the solution, as Hostname I simply added the db port number, like

localhost:10012

and it installed. Also, tested with latest Joomla 4 and it worked.
Hopefully this can be helpful for someone else.

1 Like

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.

Thank you for coming by and sharing this for others @Joakim! Happy Developing :slight_smile: