Welcome Guest | Login

Typo Deployment Troubles

I'm having trouble starting up my mongrel instance to host Typo on my site. I get the following error after issuing the command:

~/typo: mongrel_rails start -e production -p ****

** Starting Rails with production environment...
/home/atalus/typo/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:471:in `real_connect': Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (Mysql::Error)
       from /home/atalus/typo/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:471:in `connect'
       from /home/atalus/typo/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:165:in `initialize'
       from /home/atalus/typo/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:88:in `new'
       from /home/atalus/typo/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:88:in `mysql_connection'
       from /home/atalus/typo/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:291:in `send'
       from /home/atalus/typo/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:291:in `connection='
       from /home/atalus/typo/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:259:in `retrieve_connection'
       from /home/atalus/typo/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in `connection'
        ... 40 levels...
       from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in `run'
       from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243
       from /usr/local/bin/mongrel_rails:16:in `load'
       from /usr/local/bin/mongrel_rails:16


Is the path to MySQL socket wrong? I've tried the other path in the post below about the Mephisto admin section dying, but that mysql socket path doesn't seem to work either.

2008-03-02 02:52 PM

Nm, I found the correct mysql.sock path.

2008-03-02 03:19 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.