Ticket #864 (closed Patch: fixed)
Mysqli DB Driver doesn't use $port variable which is possible to set in db config.
| Reported by: | jarek_bolo | Owned by: | Shadowhand |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.2.1 |
| Component: | Libraries:Database | Version: | SVN HEAD |
| Keywords: | mysqli driver database port | Cc: |
Description
As said in summary. My hosting is using non standard port for MySQL DB and I couldn't connect to it because Mysqli Driver is being called without last $port parameter, see: http://dev.kohanaphp.com/browser/tags/2.2.1/system/libraries/drivers/Database/Mysqli.php#L52
I just added: if ($this->link = new mysqli($host, $user, $pass, $database, $port))
And it is working.
Change History
Note: See
TracTickets for help on using
tickets.
