ruby on rails 3.2 - Lost connection to MySQL server at 'reading initial communication packet' - Thinking sphinx with remote sphinx server -
i tried use thinking sphinx (3.0.2) remote sphinx server. whenever search query called model.search, getting error:
mysql2::error: lost connection mysql server @ 'reading initial communication packet', system error: 0.
when tried debug it,
mysql2::client.new({ :host => address, :port => port, :flags => mysql2::client::multi_statements }
code called in thinking-sphinx-3.0.2/lib/thinking_sphinx/connection.rb:5
5 port specified in thinking_sphinx.yml.
when tried code in console, getting same error. how can solve it? related mysql or sphinx or thinking_sphinx?
fyi:
- rails(3.2.8) , thinking-sphinx (3.0.2), sphinx (2.0.5)
- sphinx, mysql in same remote server
Comments
Post a Comment