[SOLVED] Add database port

Hi,

in my setup my databases have different ports than 3306. So i search in the documentation and in the Neos.Flow.persistence.schema.yaml for a port option in persistence settings. but i find nothing. So i tried with :

Neos:
  Flow:
    persistence:
      backendOptions:
        dbname: application
        user: toor
        password: toor
        host: '0.0.0.0:8086'

But migration failed:

./flow doctrine:migrate
An exception occured in driver: Failed to parse address "0.0.0.0:8086:3306"
Looks like doctrine add the default port at the end of the string if no other port is given.

It just worked with a port option. port: 8086 But the port option is not documented. Is it safe to use this option? Because of later versions? Or is there another way?

IIRC there is a backend option called port so you can do port: 8086

Yes, that’s right. Try

Neos:
  Flow:
    persistence:
      backendOptions:
        dbname: application
        user: toor
        password: toor
        host: '127.0.0.1'
        port: 8086

Ok thank you. :slight_smile: