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:55 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:

  1. rails(3.2.8) , thinking-sphinx (3.0.2), sphinx (2.0.5)
  2. sphinx, mysql in same remote server


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -