Thanks Mark,

I'm using InnoDB table.. so DB shouldnt be corrupted.

I don't think that MySQL let me to violate key integrity. So I think better
that there is a problem of coding: two different value inserted in DB are
dumped like the same value...

So when I try to restore the DB data then MySQL give me an error of key
integrity...

BR,

rocsca

----- Original Message ----- 
From: "Mark Martinec" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, December 17, 2005 1:39 AM
Subject: Re: [AMaViS-user] Bayes database


> Rocco,
>
> > I'm using spamassassin with database MySQL.
> > I have many problem when I try to restore dumped data to another DBMS
(for
> > high availability pupouse).
> >
> > Infact, I have often problems like this:
> >
> > mysql2:/home/rocsca/slave # mysql -u root < bayes.sql
> > ERROR 1062 (23000) at line 245: Duplicate entry '4-ÈÜ?' for key 1
> >
> > Is an encoding problem? Anyone had similar problem?
>
> Corrupted database, needs repair:
>
> $ mysql sa
>   REPAIR TABLE bayes_expire, bayes_seen, bayes_token, awl;
>
> It happens from time to time with MyISAM storage engine,
> and it never happened again since I switched Bayes to InnoDB engine
> and started using the new SA 3.1 plugin for MySQL - placing the
> following in local.cf:
>    bayes_store_module  Mail::SpamAssassin::BayesStore::MySQL
>
> See file sql/README.bayes in the SA distribution.
>
>   Mark
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_idv37&alloc_id865&opÌk
> _______________________________________________
> AMaViS-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/amavis-user
> AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
> AMaViS-HowTos:http://www.amavis.org/howto/



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to