search
Homephp教程php手册dspam运维记录

dspam运维记录

extmail自己在用,发现错误:
Apr 10 07:03:19 mail dspam[1468]: query error: Duplicate entry '1-2288815384906775934' for key 'id_token_data_01': see sql.errors for more details
Apr 10 07:03:19 mail dspam[1468]: bailing on error -2
Apr 10 07:03:19 mail dspam[1468]: received invalid result (!DSR_ISSPAM && !DSR_ISINNOCENT): -2
Apr 10 07:03:19 mail dspam[1468]: process_message returned error -5. delivering.

mysql出现“Incorrect key file for table” 错误!

度娘居然没有给我什么帮助,还是自己想的办法,其实很简单,就是mysql中dspam库的dspam_token_data表文件中token字段记录有重复数据,怎么折腾都白搭,正确的处理方法是:
第一种方法(原有数据不保留了):先stop掉dspamd服务,service dspamd stop,然后清空dspam_token_data的所有数据(我用Navicat for mysql 图形界面做到的),然后在该表上做一个token字段的主键(主键就不会再重复了)。然后重启服务即可。
第二种方法(保留表里原有数据,想办法去掉重复的,然后见token设置成主键):先stop掉dspamd服务,将dspam_token_data导出成“,”分割的txt文件,然后导入到excel,注意将token字段定义成文本格式,否则那数据末尾全部变成0000了(这就是为什么要导出文本,而不导出成excel),可以用excel中“数据”-->“删除重复数据”来清楚重复内容,再将mysql中dspam_token_data表清空,导入这些处理完的数据,恢复dspamd服务,错误没了!


Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function