Walker Web Data
2006-Jan-08 23:47 UTC
[Instantrails-users] socket: /path/to/your/mysql.sock
Hello In config\database.yml it says: socket: /path/to/your/mysql.sock Which path? I can''t find mysql.sock. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060108/06fe8e2f/attachment.htm
On 1/8/06, Walker Web Data <walkerwebdata at gmail.com> wrote:> > Hello > > In config\database.yml it says: > > socket: /path/to/your/mysql.sock > > Which path? I can''t find mysql.sock. >Just ignore it. Its a new way of specifying the connection to the database, but I don''t understand it (if someone else does, please post an explanation). Anyway, if the file doesn''t exist, Rails uses localhost:3306, which is what you want. Curt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060108/c5325472/attachment.htm
> > socket: /path/to/your/mysql.sock > Its a new way of specifying the connection to the database, but I don''t > understand it (if someone else does, please post an explanation).Just stating the obvious, but the socket is a faster alternative to TCP/IP where both the client and mysql server are on the same machine. Works through named pipes on windows. Probably irrelevant until you''re out of the TSTTCPW stage. Further reading: http://dev.mysql.com/doc/refman/4.1/en/multiple-server-clients.html http://dev.mysql.com/doc/refman/4.1/en/can-not-connect-to-server.html HTH, Assaph
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Assaph Mehr wrote:>>>socket: /path/to/your/mysql.sock >> >>Its a new way of specifying the connection to the database, but I don''t >>understand it (if someone else does, please post an explanation). > > > Just stating the obvious, but the socket is a faster alternative to > TCP/IP where both the client and mysql server are on the same machine.And it''s more common on unix systems. I usually remove it and put a host: localhost in place of it. - -- David Morton Maia Mailguard - http://www.maiamailguard.com Morton Software Design and Consulting - http://www.dgrmm.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDweU8SIxC85HZHLMRAg/NAJ42tdfT/+NrwRjueR2ALcnBVFxcRQCZASYp pykQzalRKOJFkSJK25uqUkY=3e6L -----END PGP SIGNATURE-----