[ZODB-Dev] port argument in MySQLAdapter for relstorage

Shane Hathaway shane at hathawaymix.org
Fri Jan 22 15:33:34 EST 2010


Damien Farrell wrote:
> Does the port argument in MySQLAdapter for relstorage actually have any 
> effect? It doesn't seem to make any difference no matter what port I supply.

MySQL treats the host name "localhost" specially.  When the host name 
given to MySQL is localhost, MySQL connects through a socket file and 
disregards the port number.  If you want to force a connection over a 
TCP socket, use "127.0.0.1" as the host name.  This misfeature is built 
into MySQL.

Shane



More information about the ZODB-Dev mailing list