MySQL port number?

How do we find out the MySQL port number of the project?

I checked the mysql conf and site conf files and all I see are references of port. So where is port defined?

I’m guessing it’s :3306 because there’s no port specified in the wp-config. However, if you where to export the project, there is a MySQL port specified in the local-site.json file.

Example: "ports":{"MYSQL":[10018]}.

I’m actually trying to install Strapi with Local because I figure Local already has MySQL why should I be redundant and install a separate standalone MySQL with Brew.

However, this isn’t working, and I obviously don’t have any other MySQL versions running.

Connection test failed: connect ECONNREFUSED 127.0.0.1:3306

Here is how I answered the Strapi install questions:

? Choose your default database client mysql
? Database name: local
? Host: 127.0.0.1
? Port: 3306
? Username: root
? Password: root
? Enable SSL connection: No

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