Hi perl monks,
i worked mysql version 5.0.16 and perl version 5.6.1(Net::Mysql-0.04) it gonig smooth. now my mysql server changed with 5.0.27 working with perl 5.6.1(Net::Mysql-0.09). it is retiving some table data .But some few table it is hanging those tables not having much data also even i tested in the server same tables with same query working fine. here is my code
use Net::MySQL; our $mysql = Net::MySQL->new( hostname => "$Hostip", database => 'DB', user => 'test123', password => 'test123' ); my (@value) = selectRecord('MASTER','USER_NAME',"USER_ID = 'test' AND +DELETED=0"); print "@value\n"; sub selectRecord { my($TableName,$FieldName,$Condition)=@_; my(@Result); $mysql->query(qq{SELECT $FieldName from $TableName where $Conditio +n}); if ($mysql->is_error) { my $DBError = $mysql->get_error_message; print "$DBError\n"; return(0); } else { my $RecordSet = $mysql->create_record_iterator; while (my $Field = $RecordSet->each) { push(@Result ,$Field->[0]); } } #Sorting arrays @Result = sort {uc($a) cmp uc($b)} @Result; return(@Result); } $mysql->close;

In reply to probelm with Net::MySQL by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.