rfc:mysqlnd_localhost_override

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
rfc:mysqlnd_localhost_override [2013/02/12 11:25] – created asannesrfc:mysqlnd_localhost_override [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Request for Comments: How to write RFCs ====== +====== Add mysqlnd.localhost_override option ====== 
-  * Version: 0.1+  * Version: 0.2
   * Date: 2013-02-12   * Date: 2013-02-12
   * Author: Asbjørn Sannes <asbjorn.sannes.at.interhost.no>   * Author: Asbjørn Sannes <asbjorn.sannes.at.interhost.no>
-  * Status: In Draft+  * Status: Widthdrawn
   * First Published at: https://wiki.php.net/rfc/mysqlnd_localhost_override   * First Published at: https://wiki.php.net/rfc/mysqlnd_localhost_override
  
 +===== Withdrawn =====
 +
 +There are methods to work around this:
 +
 +  * write a mysqlnd plugin (Johannes Schlüter)
 +  * PDO already support DSN-alias, php.net/pdo.configuration#ini.pdo.dsn (Sebastian Krebs)
  
 ===== 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 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 /tmp/mysql.sock today to match where their default MySQL installation puts their unix socket. +  * many distributions patches the default of /tmp/mysql.sock today to match where their default MySQL installation puts their unix socket. 
- * 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:///tmp/mysql.sock may be appropriate. It would also leave the behaviour of "localhost" easier to follow.+If the old behaviour were to be deprecated or phased out, a default value of %%unix:///tmp/mysql.sock%% may be appropriate. It would also leave the behaviour of "localhost" easier to follow.
  
 ===== 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:<file>
 mysqlnd.localhost_override = unix:///var/run/mysql/mysqld.sock mysqlnd.localhost_override = unix:///var/run/mysql/mysqld.sock
 mysqlnd.localhost_override = tcp://otherhost:3306 mysqlnd.localhost_override = tcp://otherhost:3306
 +</file>
  
 ===== 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)