Re: Perl and MySQL
- From: xhoster@xxxxxxxxx
- Date: 28 Feb 2007 17:48:42 GMT
"Charles A. Landemaine" <landemaine@xxxxxxxxx> wrote:
I have a MySQL table that is used to store comments on my blog. I just
found out it's filled with spam. The table itself is 2 GB big, with
more than half a million spam backlinks. I haven't found much material
on how to interact between Perl and MySQL. What I'd like to do is do a
simple Perl script that opens the DB table, goes through all rows and
deletes all those which contain "<a href". I'll have to do that during
the night, not to disrupt the server. How could I do that?
Thanks,
I don't know why you would do this in Perl rather from the mysql client,
but anyway I'd use DBI and DBD::mysql
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
.
- Follow-Ups:
- Re: Perl and MySQL
- From: Charles A. Landemaine
- Re: Perl and MySQL
- References:
- Perl and MySQL
- From: Charles A. Landemaine
- Perl and MySQL
- Prev by Date: Re: Rindex used to find end of a string
- Next by Date: Re: Perl and MySQL
- Previous by thread: Perl and MySQL
- Next by thread: Re: Perl and MySQL
- Index(es):
Relevant Pages
|