<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Nelson,<br>
<br>
your mysql server is old. The best way upgrade your mysql server
minimum up to 5.1.43, if not, don't use UNIX_TIMESTAMP partitioning
for this mysql.<br>
<br>
Wbr,<br>
Alexandr<br>
<br>
14.02.2012 15:25, Nelson Pereira wrote:
<blockquote cite="mid:001c01cceb24$7b08dc30$711a9490$@cbnco.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (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]-->
<style><!--
/* Font Definitions */
@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:11.0pt;
        font-family:"Calibri","sans-serif";}
h1
        {mso-style-priority:9;
        mso-style-link:"Heading 1 Char";
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:24.0pt;
        font-family:"Times New Roman","serif";
        font-weight:bold;}
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
        {mso-style-priority:99;
        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","serif";}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
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";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.Heading1Char
        {mso-style-name:"Heading 1 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 1";
        font-family:"Times New Roman","serif";
        font-weight:bold;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@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">Hi all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Trying to create the Homer SIP capture
(Kamailio) DB and getting an error:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span
style="font-size:24.0pt;font-family:"Times New
Roman","serif"">Error<o:p></o:p></span></b></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif"">SQL query:</span></b><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif""> <o:p></o:p></span></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif"">CREATE TABLE `sip_capture` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `date`
timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `micro_ts`
bigint(18) NOT NULL DEFAULT '0', `method` varchar(50) NOT
NULL DEFAULT '', `reply_reason` varchar(100) NOT NULL,
`ruri` varchar(200) NOT NULL DEFAULT '', `ruri_user`
varchar(100) NOT NULL DEFAULT '', `from_user` varchar(100)
NOT NULL DEFAULT '', `from_tag` varchar(64) NOT NULL DEFAULT
'', `to_user` varchar(100) NOT NULL DEFAULT '', `to_tag`
varchar(64) NOT NULL, `pid_user` varchar(100) NOT NULL
DEFAULT '', `contact_user` varchar(120) NOT NULL,
`auth_user` varchar(120) NOT NULL, `callid` varchar(100) NOT
NULL DEFAULT '', `callid_aleg` varchar(100) NOT NULL DEFAULT
'', `via_1` varchar(256) NOT NULL, `via_1_branch`
varchar(80) NOT NULL, `cseq` varchar(25) NOT NULL,
`diversion` varchar(256) NOT NULL, `reason` varchar(200) NOT
NULL, `content_type` varchar(256) NOT NULL, `authorization`
varchar(256) N[...] <o:p></o:p></span></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif"">MySQL said: </span></b><a
moz-do-not-send="true"
href="http://172.20.25.149/phpMyAdmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.0%2Fen%2Ferror-messages-server.html&token=1d6b9d77bce4c6f164883e3c6dd6bc09"
target="mysql_doc"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:blue;text-decoration:none"><img
id="Picture_x0020_1"
src="cid:part1.03090607.03070607@start4.info"
alt="Description: Documentation" height="11" border="0"
width="11"></span></a><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New"">#1064
- You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right
syntax to use near 'PARTITION BY RANGE (
UNIX_TIMESTAMP(`date`) ) (<br>
PARTITION pmax VALUES LESS THAN ' at line 50<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New"">System
Information:<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:Symbol">·</span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif""> Apache/2.2.10 (Linux/SUSE)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:Symbol">·</span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif""> MySQL client version:
5.0.67<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:Symbol">·</span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif""> PHP extension: mysqli<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif"">Server is SLES 11 SP1</span><o:p></o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
</body>
</html>