rfc:mysqlnd_localhost_override
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
rfc:mysqlnd_localhost_override [2013/02/12 11:25] – created asannes | rfc:mysqlnd_localhost_override [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | * Version: 0.1 | + | * Version: 0.2 |
* Date: 2013-02-12 | * Date: 2013-02-12 | ||
* Author: Asbjørn Sannes < | * Author: Asbjørn Sannes < | ||
- | * Status: | + | * Status: |
* First Published at: https:// | * First Published at: https:// | ||
+ | ===== Withdrawn ===== | ||
+ | |||
+ | There are methods to work around this: | ||
+ | |||
+ | * write a mysqlnd plugin (Johannes Schlüter) | ||
+ | * PDO already support DSN-alias, php.net/ | ||
===== Introduction ===== | ===== Introduction ===== | ||
Line 12: | Line 18: | ||
I have noted the following: | I have noted the following: | ||
- | * many populare php applications put in localhost as the default, making it work out of the box for most installations. | + | |
- | * many distributions patches the default of / | + | * many distributions patches the default of / |
- | * when splitting a webserver and mysql installation all the applications needs to be reconfigured to point at the external mysql server. | + | * when splitting a webserver and mysql installation all the applications needs to be reconfigured to point at the external mysql server. |
===== Proposal and Patch ===== | ===== Proposal and Patch ===== | ||
Line 24: | Line 30: | ||
It keeps backward compatability by falling back to current behaviour if mysqlnd.localhost_override is not set. | It keeps backward compatability by falling back to current behaviour if mysqlnd.localhost_override is not set. | ||
- | If the old behaviour were to be deprecated or phased out, a default value of unix:/// | + | If the old behaviour were to be deprecated or phased out, a default value of %%unix:/// |
===== Documentation ===== | ===== Documentation ===== | ||
If this extension of mysqlnd were to be accepted and merged, the documentation must be updated to include the new option and its syntax. | If this extension of mysqlnd were to be accepted and merged, the documentation must be updated to include the new option and its syntax. | ||
- | Example of usage: | + | |
+ | Example of usage:< | ||
mysqlnd.localhost_override = unix:/// | mysqlnd.localhost_override = unix:/// | ||
mysqlnd.localhost_override = tcp:// | mysqlnd.localhost_override = tcp:// | ||
+ | </ | ||
===== Changelog ===== | ===== Changelog ===== | ||
0.1 Initial draft | 0.1 Initial draft | ||
+ | 0.2 Withdrawn | ||
rfc/mysqlnd_localhost_override.1360668303.txt.gz · Last modified: 2017/09/22 13:28 (external edit)