You need to use the mysql2 gem with a version of 0.3.12b4 or newer - can you try that and see if it helps?
On 30/04/2013, at 10:06 AM, deepak dash wrote: > > Hello, > > When i'm trying to search from rails console it gives me the following error > > Mysql2::Error: Lost connection to MySQL server at 'reading initial > communication packet', system error: 2 > > My configuration > • Rails: 3.2.8 > • Ruby:1.9.3 > • Sphinx:2.0.7 > • thinking_sphinx:3.0.2 > • mysql: 0.3.11 > > My thinking_sphinx.yml is as below > development: > bin_path: c:\Sphinx\bin > searchd_binary_name: searchd > indexer_binary_name: indexer > port: 9306 > > i have created a indices folder with file name student_index. > > ThinkingSphinx::Index.define :student, :with => :active_record do > indexes school_name > end > > Please help me ASAP. > Thanks in advance. > > -- > You received this message because you are subscribed to the Google Groups > "Thinking Sphinx" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
