rfc:mysqlnd_localhost_override

Differences

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

Link to this comparison view

Next revisionBoth sides next revision
rfc:mysqlnd_localhost_override [2013/02/12 11:25] – created asannesrfc:mysqlnd_localhost_override [2013/02/12 11:33] – Update formatting and title asannes
Line 1: Line 1:
-====== Request for Comments: How to write RFCs ======+====== Add mysqlnd.localhost_override option ======
   * Version: 0.1   * Version: 0.1
   * Date: 2013-02-12   * Date: 2013-02-12
Line 12: Line 12:
  
 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 24:
 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 =====
rfc/mysqlnd_localhost_override.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1