# MySQL port number?

**URL:** <https://community.localwp.com/t/mysql-port-number/27535>\
**Category:** Support\
**Created:** [September 5, 2021, 2:38pm UTC](https://community.localwp.com/t/mysql-port-number/27535 "2021-09-05T14:38:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![djmtype](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@djmtype](https://community.localwp.com/u/djmtype)\
**Post date:** [September 5, 2021, 2:38pm UTC](https://community.localwp.com/t/mysql-port-number/27535/1 "2021-09-05T14:38:25Z")

</div>

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:

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

```

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [December 4, 2021, 2:38pm UTC](https://community.localwp.com/t/mysql-port-number/27535/2 "2021-12-04T14:38:58Z")

</div>

Closed on December 4, 2021, 2:38pm UTC

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