Hello, when I invoke an action of my rails web app I recieve this message: No such file or directory - /tmp/mysql.sock In my MySQL config file I have this line: socket=/var/lib/mysql/mysql.sock Why Rails doesn''t pick up this value instead of his default value? How could I change the configuration of Rails in order to change that value? -- / Eduardo Yáñez Parareda /
Eduardo Yáñez Parareda wrote:>Hello, when I invoke an action of my rails web app I recieve this message: > >No such file or directory - /tmp/mysql.sock > >In my MySQL config file I have this line: > >socket=/var/lib/mysql/mysql.sock > >Why Rails doesn''t pick up this value instead of his default value? >How could I change the configuration of Rails in order to change that value? > > >does /var/lib/mysql/mysql.sock exist? i assume so in which case... put this in /etc/profile MYSQL_UNIX_PORT=/var/lib/mysql/mysql.sock export MYSQL_UNIX_PORT and in my.conf make sure that is what socket is set to... you''ll of course need a new shell to bring those changes in... _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
It should be socket: /var/lib/mysql/mysql.sock, not the : rather than Cheers, Chris On 6/29/05, Eduardo Yáñez Parareda <eduardo.yanez-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello, when I invoke an action of my rails web app I recieve this message: > > No such file or directory - /tmp/mysql.sock > > In my MySQL config file I have this line: > > socket=/var/lib/mysql/mysql.sock > > Why Rails doesn''t pick up this value instead of his default value? > How could I change the configuration of Rails in order to change that value? > > -- > / Eduardo Yáñez Parareda / > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
note rather than not there sorry. On 6/29/05, Chris McGrath <c.r.mcgrath-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> It should be socket: /var/lib/mysql/mysql.sock, not the : rather than > > Cheers, > > Chris > > > On 6/29/05, Eduardo Yáñez Parareda <eduardo.yanez-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hello, when I invoke an action of my rails web app I recieve this message: > > > > No such file or directory - /tmp/mysql.sock > > > > In my MySQL config file I have this line: > > > > socket=/var/lib/mysql/mysql.sock > > > > Why Rails doesn''t pick up this value instead of his default value? > > How could I change the configuration of Rails in order to change that value? > > > > -- > > / Eduardo Yáñez Parareda / > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > >