Database connection error during setup of version 5.7.0.3

Permalink
I tried to setup a new installation with version 5.7.0.3 Using a MySQL with a non standard port, so used: localhost:5503
SQLSTATE[28000] [1045] Access denied for user 'xxxxxx'@'127.0.0.1' (using password: YES)
After this I tried the same (same database, user port) with version 5.6.1.2 and succeeded without any problem.

When it showed the error message it only shows the localhost IP address, no portnumer. Is it possible the the portnumber is ignored with later versions ?

 
michall replied on at Permalink Reply
Yes, it is possible.
Add
'port' => '3307'

in application/config/database.php

However I have not seen this in any documentation.