Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

added port recognition to db host#37

Open
mgrundkoetter wants to merge 1 commit intoBlock8:masterfrom
mgrundkoetter:dbport
Open

added port recognition to db host#37
mgrundkoetter wants to merge 1 commit intoBlock8:masterfrom
mgrundkoetter:dbport

Conversation

@mgrundkoetter
Copy link

When using a different port than the default one, you can add it like host:port, but the PDO constructor expects another format:

new PDO('mysql:host=xxx;port=xxx;dbname=xxx', 'xxx', 'xxx', array( PDO::ATTR_PERSISTENT => false));

So this litte change now makes it possible to write host:port to the config and it will be reformatted correctly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant