[Nitro] Og - mysql.sock

George Moschovitis george.moschovitis at gmail.com
Mon Sep 5 03:33:01 EDT 2005


thanks for the patche, please also send me the updated setup help for
inclusion in the next version.

regards,
George.

On 9/5/05, manveru <ulmo at valaraan.de> wrote:
> hi list,
> 
> i was trying to get mysql running today on a debian-testing box, and i
> noticed they are doing odd things to mysql...
> but what me annoyed most, was that they have the mysql.sock not like
> everyone else in '/tmp/mysql.sock' - nah... - they had to put it in
> '/var/run/mysqld/mysqld.sock'
> well, i guess that someone else may stumble upon that too, and i just
> wanted to provide that information.
> 
> ysabel, i have altered the Og.setup for mysql to
> 
> -----------------------------------------------
> Og.setup(
>   #~ :destroy  => true,
>   :store    => :mysql,
>   :name     => 'spark',
>   :user     => 'root',
>   :password => 'mine :)',
>   #~ :port     => 3306,
>   :socket   => '/var/run/mysqld/mysqld.sock'
> )
> ----------------------------------------------
> 
> and changed the '/lib/og/store/mysql.rb':117
> ----------------------------------------------
>  @conn = Mysql.connect(
>     options[:address] || 'localhost',
>     options[:user],
>     options[:password],
>     options[:name],
>     options[:port],
>     options[:socket]
>  )
> ----------------------------------------------
> 
> i had to provide a option for the port before the socket too because the
> real_connect expects it and i don't want to mix up with your defaults,
> but none of the options is a must-have of course...
> 
> hope that helps somebody, and maybe this could be added in a future
> version...
> i'll write a little help-text for the Og.setup later too, because it
> doesn't helped me much as it is - just some describing of how to use
> wich database and known bugs...
> 
> 
> so long...
> manveru
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
> 


-- 
http://www.gmosx.com
http://www.navel.gr
http://www.nitrohq.com




More information about the Nitro-general mailing list