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
Diferent port for database adapter #1008
Conversation
i need a different port for my database (postgresql listening in port 5434) in config.ini [Database] database = pgsql://postgres:pass@localhost/databasepostgres schema = vufind port = 5434 I think that is working for mysql too.
Thanks for sharing this! Did you consider specifying the port as part of the connection string? e.g. |
Ok, I will work in that approach. |
Thank you very much! I'm happy to help if you need anything. |
@horaciod, I had a few moments free, so I pushed up a proposed alternate implementation that makes use of the connection string instead of a separate setting. Do you mind trying this and letting me know if it works for you? It appears upon initial testing that the 'port' setting does not work correctly with the mysqli adapter. Further work may be needed to get this working correctly with all platforms. I am adding a TODO list to the PR comment so we don't forget about this issue (or the need to add documentation in config.ini once we settle on an approach). |
@horaciod, I was finally able to test this successfully with MySQL; I discovered that if you connect to MySQL on localhost, PHP uses sockets and ignores the port number.... however, by connecting to 127.0.0.1 instead, I was able to confirm that the port setting is being respected. |
At this point, I'm pretty comfortable that this works -- merging now. Thanks again! |
need a different port for my database (postgresql listening in port 5434)
TODO: