dbi-mysql

M

Martin Uruz

hi
i hav located the problem i had with ruby-mysql
i try the following:
/ruby-mysql-0.2.4 # ruby test.rb localhost user password test
connect......../mysql.rb:99:in `initialize': No such file or directory -
/tmp/mysql.sock (Errno::ENOENT)
from ./mysql.rb:99:in `new'
from ./mysql.rb:99:in `real_connect'
from ./mysql.rb:91:in `initialize'
from ./mysql.rb:1084:in `new'
from ./mysql.rb:1084:in `connect'
from ./t/00connect.rb:1
from test.rb:23:in `load'
from test.rb:23
from test.rb:19:in `each'
from test.rb:19

i think ruby can not find mysql.sock because it was in:
/var/lib/mysql/mysql.sock not in /tmp/mysql.sock now how to tell ruby
the location or do i think wrong?



--
thx
martin pfeffer
at
suse 9.0
Apache 2.0
ruby 1.8.0 (2003-08-04) [i686-linux]
http://eurowalker.is.dreaming.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,165
Latest member
JavierBrak
Top