Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to use MySQL / MariaDB UDS instead of TCP in parameters.yml #584

Open
GottZ opened this issue Oct 14, 2020 · 3 comments
Open

Comments

@GottZ
Copy link

GottZ commented Oct 14, 2020

Today i noticed, you can omit database_host and database_port inside parameters.yml to let Doctrine use /run/mysqld/mysqld.sock, or what ever is configured in php.ini's mysqli section, instead.

https://github.com/doctrine/dbal/blob/16878650d79934c31e27a13618ed6f3effee80d8/lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php#L67

I assume it would be great to either add database_unix_socket and / or database_dca to parameters.yml in future Contao Versions, as well as document that this Fallback can be used to gain access to the default or php.ini configured UDS.

This Documentation would have saved me quite some Time today.

@fritzmg
Copy link
Contributor

fritzmg commented Nov 2, 2020

Do you mean

# config/config.yaml
doctrine:
    dbal:
        unix_socket: ...

? This is documented here: https://symfony.com/doc/current/reference/configuration/doctrine.html

I suppose the manual could reference this somewhere in a section for more advanced configurations.

@fritzmg
Copy link
Contributor

fritzmg commented Nov 1, 2024

@GottZ still would need confirmation that that is what you meant.

@GottZ
Copy link
Author

GottZ commented Nov 1, 2024

four years have passed. Yes you are right on this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants