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
Installation: Database port ignored when hostname is used instead of IP address #5510
Comments
Are you sure the port should be used in any case? |
You are right. I am not seeing this correctly - I admit I was a bit misled by that Forum thread. The only thing that perhaps might be improved is user "education". When people think of I don't know, maybe I can just close the Issue and forget about this, or maybe we can try to come up with some way to handle this a bit better. For example, we could do this: if the user inputs |
I think changing it internally will only make it worse. Some may have disabled socket or tcp connections and then you change it internally would make it harder to find what is wrong. |
From a previous discussion we had a few months ago, I changed the tooltip on that field to this: /var/www/html/install/language/en_us.lang.php:570:
'LBL_DBCONFIG_MSG2' => 'Name of web server or machine (host) on which
the database is located (such as www.mydomain.com). If installing locally,
it\'s better to use \'localhost\' than \'127.0.0.1\', for performance reasons.', Maybe I could just add at the end:
I wonder if this is valid for all DB engines, or just for MySQL? |
This issue has been mentioned on SuiteCRM. There might be relevant details there: https://community.suitecrm.com/t/non-standard-mysql-socket-port/55519/10 |
Hi all, https://community.suitecrm.com/t/non-standard-mysql-socket-port/55519/9 Remember host parameter must be localhost. Please note mysqli_connect gives precedence to TCP connection (and non standard port) if host=IP address. If host=localhost then sock parameter has precedence. This is why localhost + non-standard-port doesn't work, it uses standard sock. |
This issue has been mentioned on SuiteCRM. There might be relevant details there: https://community.suitecrm.com/t/non-standard-mysql-socket-port/55519/11 |
Issue
According to a report on the forums, installer ignores a non-standard
db_port
in this format:localhost:1234
but uses it correctly in this format:
127.0.0.1:1234
Note that there are performance issues associated with using
127.0.0.1
instead oflocalhost
, it's not the same thing.Expected Behavior
The port should be used in any case.
Possible Fix
This should be just a bug parsing the fields.
Steps to Reproduce
Your Environment
I didn't test this myself, I am just reporting from what that user reported.
The text was updated successfully, but these errors were encountered: