<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Since i'm struggle with this all day
now, i tried everything even the following create table:<br>
<br>
CREATE TABLE t1<br>
(<br>
id INTEGER UNSIGNED NOT NULL,<br>
weight INTEGER NOT NULL,<br>
query VARCHAR(3072) NOT NULL,<br>
group_id INTEGER,<br>
INDEX(query)<br>
) ENGINE=SPHINX CONNECTION="sphinx://127.0.0.1:9312/fulltext1"
CHARACTER SET utf8;<br>
<br>
<br>
Still the error is:<br>
<br>
ERROR 2013 (HY000): Lost connection to MySQL server during query<br>
<br>
Directly searching from the command line using "search" i'm
getting results, but still i'm missing something between RT and
Sphinx/MySQL<br>
<br>
<div class="moz-signature"><br>
</div>
On 02/17/2014 05:46 PM, Bryon Baker wrote:<br>
</div>
<blockquote
cite="mid:495d87e074ef4b4f9fc500a866f9bea6@BLUPR05MB788.namprd05.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
color:black;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";
color:black;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">The
table will always be empty. This was unexpected for me as
well somewhere I did find some SQL that would test Sphinx
and MySQL integration. Just can’t find it again.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Still
looking.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Bryon
Baker<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Network
Operations Manager<o:p></o:p></span></p>
<p class="MsoNormal"><b><i><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">Copesan</span></i></b><b><i><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">
- Specialists in Pest Solutions<o:p></o:p></span></i></b></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">800-267-3726
• 262-783-6261 ext. 2296<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><a
moz-do-not-send="true"
href="mailto:cstephan@copesan.com">bbaker@copesan.com</a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif""><a
moz-do-not-send="true" href="http://www.copesan.com/"><span
style="color:black">www.copesan.com</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><b><i><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">"Servicing
North America with Local Care"</span></i></b><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
Yavor Marinov [<a class="moz-txt-link-freetext" href="mailto:ymarinov@neterra.net">mailto:ymarinov@neterra.net</a>]
<br>
<b>Sent:</b> Monday, February 17, 2014 9:34 AM<br>
<b>To:</b> Bryon Baker<br>
<b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:rt-users@lists.bestpractical.com">rt-users@lists.bestpractical.com</a><br>
<b>Subject:</b> Re: [rt-users] Sphinx and RT<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">It seems
that the table AttachmentIndex is created, but currently
it's empty. Once i try to insert the values i'm getting
this:<br>
<br>
ERROR 2013 (HY000): Lost connection to MySQL server during
query<br>
<br>
Even if I try to drop that table, I'm getting the same
problem. Also creating executing the following<br>
<br>
CREATE TABLE Sphinx (<br>
id INTEGER UNSIGNED NOT NULL,<br>
weight INTEGER NOT NULL,<br>
query VARCHAR(3072) NOT NULL,<br>
INDEX(query)<br>
) ENGINE=SPHINX
CONNECTION="sphinx://127.0.0.1:9312/fulltext1" CHARACTER SET
utf8 ;<br>
<br>
I'm getting<br>
<br>
ERROR 1064 (42000): You have an error in your SQL syntax;<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
</div>
<p class="MsoNormal">On 02/17/2014 04:46 PM, Bryon Baker
wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">The
table did get created for me but would not work until I
recreated using the IP address. There was some testing
procedures I used from the Sphinx site to figures this out
I will send them in another email if I can find the again.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Bryon
Baker</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Network
Operations Manager</span><o:p></o:p></p>
<p class="MsoNormal"><b><i><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">Copesan</span></i></b><b><i><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">
- Specialists in Pest Solutions</span></i></b><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">800-267-3726
• 262-783-6261 ext. 2296</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><a
moz-do-not-send="true"
href="mailto:cstephan@copesan.com">bbaker@copesan.com</a></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif""><a
moz-do-not-send="true" href="http://www.copesan.com/"><span
style="color:black">www.copesan.com</span></a></span><o:p></o:p></p>
<p class="MsoNormal"><b><i><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">"Servicing
North America with Local Care"</span></i></b><o:p></o:p></p>
</div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
Yavor Marinov [<a moz-do-not-send="true"
href="mailto:ymarinov@neterra.net">mailto:ymarinov@neterra.net</a>]
<br>
<b>Sent:</b> Monday, February 17, 2014 8:42 AM<br>
<b>To:</b> Bryon Baker<br>
<b>Cc:</b> <a moz-do-not-send="true"
href="mailto:rt-users@lists.bestpractical.com">rt-users@lists.bestpractical.com</a><br>
<b>Subject:</b> Re: [rt-users] Sphinx and RT</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Actually,
the script <b>rt-setup-fulltext-index</b> is supposed to
do that. And I've tried everything, localhost,127.0.0.1,
the real hostname, the real IP - nothing made this script
working.
<br>
<br>
Are you advising me to create this table by hand? Because
if it's this ... i can just cut my wrists ;)<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"> <o:p></o:p></p>
</div>
<p class="MsoNormal">On 02/17/2014 04:30 PM, Bryon Baker
wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Check
the setup on this table I found that the only way it
works for me is if I use the IP address instead of
“localhost”.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">CREATE
TABLE `AttachmentsIndex` (</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">
`id` int(10) unsigned NOT NULL,</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">
`weight` int(11) NOT NULL,</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">
`query` varchar(3072) NOT NULL,</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">
KEY `query` (`query`(1024))</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">)
ENGINE=SPHINX DEFAULT CHARSET=utf8
CONNECTION='sphinx://”ipaddress of host”:3312/rt'$$</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Bryon
Baker</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">Network
Operations Manager</span><o:p></o:p></p>
<p class="MsoNormal"><b><i><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">Copesan</span></i></b><b><i><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">
- Specialists in Pest Solutions</span></i></b><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif"">800-267-3726
• 262-783-6261 ext. 2296</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D"><a
moz-do-not-send="true"
href="mailto:cstephan@copesan.com">bbaker@copesan.com</a></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif""><a
moz-do-not-send="true"
href="http://www.copesan.com/"><span
style="color:black">www.copesan.com</span></a></span><o:p></o:p></p>
<p class="MsoNormal"><b><i><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">"Servicing
North America with Local Care"</span></i></b><o:p></o:p></p>
</div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
<a moz-do-not-send="true"
href="mailto:rt-users-bounces@lists.bestpractical.com">rt-users-bounces@lists.bestpractical.com</a>
[<a moz-do-not-send="true"
href="mailto:rt-users-bounces@lists.bestpractical.com">mailto:rt-users-bounces@lists.bestpractical.com</a>]
<b>On Behalf Of </b>Yavor Marinov<br>
<b>Sent:</b> Monday, February 17, 2014 8:20 AM<br>
<b>To:</b> <a moz-do-not-send="true"
href="mailto:rt-users@lists.bestpractical.com">rt-users@lists.bestpractical.com</a><br>
<b>Subject:</b> [rt-users] Sphinx and RT</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<br>
<br>
I'm almost desperate - after spending 2 days trying to
implement the fulltext search in RT 4.2.2 i'm still at the
point, where i can't find proper information regarding my
issue. Here is my setup:<br>
<br>
CentOS 6 <br>
MySQL 5.1.73 (grabbed from repos, beside that i downloaded
the source version of this MySQL in order to compile the
sphinx lib)<br>
Sphinx 2.1.5 (from their official website)<br>
RT 4.2.2<br>
<br>
So, from the source directory of Sphinx, i copied the
"mysqlse" content to the source tree of the mysql.
<b>Only</b> compiled MySQL (without install) - installed
the Sphinx lib, and everything went smooth. Currently this
is the result from MySQL engines:<br>
<br>
mysql> select * from mysql.plugin;<br>
+--------+--------------+<br>
| name | dl |<br>
+--------+--------------+<br>
| sphinx | ha_sphinx.so |<br>
+--------+--------------+<br>
1 row in set (0.00 sec)<br>
<br>
mysql> <br>
<br>
It's loaded, Sphinx is working:<br>
<br>
[root@rtmig ymarinov]# ps xa|grep search<br>
7162 ? S 0:00 /usr/bin/searchd --config
/etc/sphinx/sphinx.conf<br>
7163 ? Sl 0:05 /usr/bin/searchd --config
/etc/sphinx/sphinx.conf<br>
8103 pts/0 S+ 0:00 grep search<br>
[root@rtmig ymarinov]# <br>
<br>
At this point, everything looks find, but once i try to
run <b>rt-setup-fulltext-index</b>, i got the following
error:<br>
<br>
[7409] [Mon Feb 17 13:09:33 2014] [critical]: DBI
connect('dbname=rt4;host=localhost','root',...) failed:
Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (111) at
./rt-setup-fulltext-index line 581.
(/opt/rt4/sbin/../lib/RT.pm:393)<br>
DBI connect('dbname=rt4;host=localhost','root',...)
failed: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (111) at
./rt-setup-fulltext-index line 581.<br>
<br>
No matter, what user or password i'm using - this is the
error i'm getting. <br>
Point me something to look for, please. Can I just use the
"CREATE TABLE" which is in this script, or there is
something else which have to be done?<br>
<br>
BR.<br>
<br>
<br>
<br>
<br>
<o:p></o:p></p>
</blockquote>
<p class="MsoNormal"> <o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</blockquote>
<br>
</body>
</html>