<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        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";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:Verdana;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'>Hi…<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'> I have created
the memcache.so file from the memcache.c file, then I have put in the lib
folder…<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'>I have followed the procedure for create share object file
( .so file)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'>Like this : <b><span style='font-weight:bold'><a
href="http://dev.mysql.com/doc/refman/5.0/en/udf-compiling.html">http://dev.mysql.com/doc/refman/5.0/en/udf-compiling.html</a><o:p></o:p></span></b></span></font></p>
<p class=MsoNormal><b><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana;font-weight:bold'><o:p> </o:p></span></font></b></p>
<p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'>After that I have create the function like this,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=2 color=maroon
face=Verdana><span style='font-size:10.0pt;font-family:Verdana;color:maroon'>CREATE
FUNCTION memcache_delete RETURNS INTEGER SONAME 'memcache.so'; <o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>When I execute the above statement,
I got the error like this…<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in;text-autospace:none'><font size=1
color=red face="Courier New"><span style='font-size:9.0pt;font-family:"Courier New";
color:red'>Error Code : 1126<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=1 color=red
face="Courier New"><span style='font-size:9.0pt;font-family:"Courier New";
color:red'>Can't open shared library 'memcache.so' (errno: 22 /lib/memcache.so:
undefined symbol: empty_string)</span></font><font size=2 color=red
face=Verdana><span style='font-size:10.0pt;font-family:Verdana;color:red'><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>How to solve the above problem…..?<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>Can you any one tell me the
solution for this?<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><strong><b><font size=2 face=Verdana><span style='font-size:
10.0pt;font-family:Verdana'>Regards,</span></font></b></strong><o:p></o:p></p>
<div>
<p class=MsoNormal><strong><b><font size=2 face=Verdana><span style='font-size:
10.0pt;font-family:Verdana'>S.Ashokkumar</span></font></b></strong><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'>DB Programmer</span></font><o:p></o:p></p>
</div>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Lessaid
ABDERRAHMAN [mailto:lessaid@gmail.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Saturday, July 28, 2007 2:58
PM<br>
<b><span style='font-weight:bold'>To:</span></b> Ashok<br>
<b><span style='font-weight:bold'>Cc:</span></b> <st1:PersonName w:st="on">Earl
Cahill</st1:PersonName>; Dustin Sallings; Memcached list<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: Configure - memcache
with mysql</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Hi <br>
<br>
1-3: You can try </span></font><b><font size=2><span style='font-size:10.0pt;
font-weight:bold'>memcache_engine</span></font></b>, it may help you : <br>
<a href="http://tangent.org/index.pl?node_id=506">http://tangent.org/index.pl?node_id=506</a>
<br>
<br>
4 : An old article from John David Duncan's blog about what you're looking for
:<br>
<a
href="http://mysqlblog.lenoxway.net/index.php?/archives/3-MySQL-triggers-and-memcache.html">http://mysqlblog.lenoxway.net/index.php?/archives/3-MySQL-triggers-and-memcache.html</a><br>
<br>
Enjoy :)<o:p></o:p></p>
<div>
<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 7/28/07, <b><span style='font-weight:bold'>Ashok</span></b>
<<a href="mailto:ashokkumar@buddiesinfotech.com">
ashokkumar@buddiesinfotech.com</a>> wrote:</span></font></span><o:p></o:p></p>
<div link=blue vlink=blue>
<div>
<p style='margin-left:.5in;text-indent:-.25in'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>1.</span></font><font size=1><span
style='font-size:7.5pt'> </span></font>How to
create the memcache.so file from the memcache.c?<o:p></o:p></p>
<p style='margin-left:.5in;text-indent:-.25in'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>2.</span></font><font size=1><span
style='font-size:7.5pt'> </span></font>How to
link the memcache.so file with mysql?<o:p></o:p></p>
<p style='margin-left:.5in;text-indent:-.25in'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>3.</span></font><font size=1><span
style='font-size:7.5pt'> </span></font>How to
create the function in Mysql using the share object file 'memcache.so'?<o:p></o:p></p>
<p style='text-indent:.25in'><font size=2 face=Verdana><span style='font-size:
10.0pt;font-family:Verdana'>4. How to clear the memcache by using Mysql
trigger?</span></font><o:p></o:p></p>
<p><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'> </span></font><o:p></o:p></p>
<div>
<p><strong><b><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'>Regards,</span></font></b></strong><o:p></o:p></p>
<div>
<p><strong><b><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'>S.Ashokkumar</span></font></b></strong><o:p></o:p></p>
</div>
<div>
<p><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'>DB
Programmer</span></font><o:p></o:p></p>
</div>
<div>
<p><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'>----------------------</span></font><o:p></o:p></p>
</div>
<div>
<p><font size=1 face=Verdana><span style='font-size:7.5pt;font-family:Verdana'>Primary
Development <st1:country-region w:st="on"><st1:place w:st="on">India</st1:place></st1:country-region>
- Chennai</span></font><o:p></o:p></p>
</div>
</div>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center>
</span></font></div>
<p><b><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
font-weight:bold'>From:</span></font></b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'> <a
href="mailto:memcached-bounces@lists.danga.com" target="_blank">memcached-bounces@lists.danga.com</a>
[mailto:<a href="mailto:memcached-bounces@lists.danga.com" target="_blank">
memcached-bounces@lists.danga.com</a>] <b><span style='font-weight:bold'>On
Behalf Of </span></b>Ashok<br>
<b><span style='font-weight:bold'>Sent:</span></b> Saturday, July 28, 2007 1:02
PM<br>
<b><span style='font-weight:bold'>To:</span></b> '<st1:PersonName w:st="on">Earl
Cahill</st1:PersonName>'; 'Dustin Sallings'; 'Memcached list'<br>
<b><span style='font-weight:bold'>Subject:</span></b> Configure - memcache with
mysql</span></font><o:p></o:p></p>
</div>
<div><span id="q_1140c180ada9bc6e_3">
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> <o:p></o:p></span></font></p>
<p><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'> </span></font><o:p></o:p></p>
<p><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'> </span></font><o:p></o:p></p>
<p><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'>Hi…</span></font><o:p></o:p></p>
<p><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'> </span></font><o:p></o:p></p>
<p><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'>
How to configure the memcache with Mysql?</span></font><o:p></o:p></p>
<p><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'> </span></font><o:p></o:p></p>
<div>
<p><strong><b><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'>Regards,</span></font></b></strong><o:p></o:p></p>
<div>
<p><strong><b><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'>S.Ashokkumar</span></font></b></strong><o:p></o:p></p>
</div>
<div>
<p><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'>DB
Programmer</span></font><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</span>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br clear=all>
<br>
-- <br>
Lessaid, Since 1980 <o:p></o:p></span></font></p>
</div>
</body>
</html>