<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">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 ;)<br>
      <br>
      <div class="moz-signature"><br>
        <br>
      </div>
      On 02/17/2014 04:30 PM, Bryon Baker wrote:<br>
    </div>
    <blockquote
cite="mid:2f6ba97fd5564e9b87425a6ba6542af3@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;}
span.EmailStyle17
        {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">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”.<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">CREATE
            TABLE `AttachmentsIndex` (<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> 
            `id` int(10) unsigned NOT NULL,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> 
            `weight` int(11) NOT NULL,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> 
            `query` varchar(3072) NOT NULL,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> 
            KEY `query` (`query`(1024))<o:p></o:p></span></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'$$<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"><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"><span
                  style="color:blue">bbaker@copesan.com</span></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">
                <a class="moz-txt-link-abbreviated" href="mailto:rt-users-bounces@lists.bestpractical.com">rt-users-bounces@lists.bestpractical.com</a>
                [<a class="moz-txt-link-freetext" 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 class="moz-txt-link-abbreviated" href="mailto:rt-users@lists.bestpractical.com">rt-users@lists.bestpractical.com</a><br>
                <b>Subject:</b> [rt-users] Sphinx and RT<o:p></o:p></span></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>
          <o:p></o:p></p>
      </div>
    </blockquote>
    <br>
  </body>
</html>