Bug #48117
closedMysql Socket connection fails.
100%
Description
A connection via socket fails because the socket part is taken as the port wich ist wrong and results in a connection exception.
From the PHP Dokumentation:
The MySQL server parameter: It can also include a port number. e.g. "hostname:port or a path to a local socket e.g." for the localhost.
Updated by Wouter Wolters almost 11 years ago
Hi Jaro,
We do not use MySQL but MySQLi in TYPO3 6.1. So there needs to be a change to support the Socket parameter.
http://nl3.php.net/manual/en/mysqli.real-connect.php
I will contact the person who implemented the new code in this area.
Updated by Jaro von Flocken almost 11 years ago
Hi Wouter,
this would be the cleanest way having an option for port number OR socket. Otherwise the solution would be detecting the type of the content behind the ":" char (string or integer).
Does it help providing you with a patch?
cheers,
Jaro
Updated by Philipp Gampe almost 11 years ago
- Status changed from New to Needs Feedback
@Jaro, it would be really cool if you would provide a patch.
We need a new install tool setting and support for this setting in the connect method.
If you want, you can also push this to our review server:
http://wiki.typo3.org/Contribution_Walkthrough_Tutorials
Updated by Alexander Opitz almost 11 years ago
Does #47455 "Separate DB TYPO3_CONF_VARS settings host and port" helps? (This doesn't have a install option yet).
Updated by Philipp Gampe almost 11 years ago
- Status changed from Needs Feedback to Accepted
- Complexity set to easy
@Alexander, no as the PHP API is not different ... we need a specific Install Tool setting for socket and we need to use this in bootstrap and DatabaseConnection.
Updated by Philipp Gampe almost 11 years ago
- Assignee set to Philipp Gampe
- % Done changed from 0 to 20
Updated by Gerrit Code Review almost 11 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/20933
Updated by Gerrit Code Review almost 11 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/20933
Updated by Gerrit Code Review almost 11 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/20933
Updated by Gerrit Code Review almost 11 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/20933
Updated by Gerrit Code Review almost 11 years ago
Patch set 5 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/20933
Updated by Gerrit Code Review over 10 years ago
Patch set 6 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/20933
Updated by Gerrit Code Review over 10 years ago
Patch set 7 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/20933
Updated by Gerrit Code Review over 10 years ago
Patch set 1 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/21973
Updated by Gerrit Code Review over 10 years ago
Patch set 2 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/21973
Updated by Philipp Gampe over 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 20 to 100
Applied in changeset da7a0de4178e850da927bda5478dbe5ddc3d001b.