Re: [Rails] Re: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

2011-03-14 Thread Magesh S
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' hi , In my database.yml i have the following : socket: /var/lib/mysql/mysql.sock but the file itself is missing in the specified location. Change database.yml to reflect wherever the socket is

[Rails] Re: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

2011-03-14 Thread Fredrik
Can you connect to mysql outside of rails? mysql -S /var/run/mysqld/mysqld.sock -u username -p mysql -h hostname -u username -p password database_name -Fredrik On Mar 14, 8:16 am, korssane korssane li...@ruby-forum.com wrote: Magesh Sathasiva pandian wrote in post #987274: but the

[Rails] Re: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

2011-03-14 Thread korssane korssane
Fredrik wrote in post #987341: Can you connect to mysql outside of rails? mysql -S /var/run/mysqld/mysqld.sock -u username -p mysql -h hostname -u username -p password database_name -Fredrik thank you guys, not sure what happend but it is working now.. mysqld.sock is there Thnsk again --

[Rails] Re: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

2011-03-13 Thread Frederick Cheung
On Mar 13, 1:55 pm, korssane korssane li...@ruby-forum.com wrote: Hi peers, i am facing a problem .. trying to test a website locally ..some pages work fine but some others calling MySQl give me the following errors : If by 'calling mysql' you mean when your app tries to use mysql then

[Rails] Re: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

2011-03-13 Thread korssane korssane
Frederick Cheung wrote in post #987179: On Mar 13, 1:55pm, korssane korssane li...@ruby-forum.com wrote: Hi peers, i am facing a problem .. trying to test a website locally ..some pages work fine but some others calling MySQl give me the following errors : If by 'calling mysql' you mean

Re: [Rails] Re: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

2011-03-13 Thread Frederick Cheung
On 13 Mar 2011, at 16:51, korssane korssane li...@ruby-forum.com wrote: Frederick Cheung wrote in post #987179: On Mar 13, 1:55pm, korssane korssane li...@ruby-forum.com wrote: Hi peers, i am facing a problem .. trying to test a website locally ..some pages work fine but some others