2017-04-24 5 views
0

Aujourd'hui, je passais en revue mon serveur et la base de données Eximstats a disparu! mais je vois comme un nouveau design, donc j'ai supposé que Cpanel/WHM était autoupdated. Je pensais que c'était une erreur et je dois juste réparer la base de données, mais le journal de livraison d'email fonctionne toujours, donc je ne sais pas d'où cette information est tirée.Eximstats a disparu après la mise à niveau de cpanel

J'ai essayé de réparer la base de données et l'outil de réparation supprime la base de données! Est comme une nouvelle structure! Je me demande si quelqu'un sait s'il existe une version d'exim qui n'utilise pas la base de données eximstats, si l'information provient d'une base de données ou d'un fichier différent, et comment relire cette base de données.

J'ai besoin de cette base de données car j'avais une application développée en utilisant cette base de données.

Merci pour votre aide!

+0

Problème similaire ici: https://stackoverflow.com/questions/44499844/cant-access-eximstats-sqlite3-db-after-whm64-upgrade – Konservin

Répondre

0

Depuis la version 64, cPanel a déplacé les données eximstats de MySQL vers SQLite3. La nouvelle base de données se trouve dans /var/cpanel/eximstats_db.sqlite3 et les tables sont légèrement modifiées. Le temps est maintenant enregistré comme timestamp unix et quelques choses ont disparu (comme les id uniques qui étaient en général inutiles de toute façon). J'espère que cela t'aides.

0

La structure de base de données eximstats est la suivante (les tables par défaut que par cPanel/WHM installer):

-- MySQL dump 10.15 Distrib 10.0.30-MariaDB, for Linux (x86_64) 
-- 
-- Host: dbv1.gazduire.ro Database: eximstats 
-- ------------------------------------------------------ 
-- Server version 5.5.27 

/*!40101 SET @[email protected]@CHARACTER_SET_CLIENT */; 
/*!40101 SET @[email protected]@CHARACTER_SET_RESULTS */; 
/*!40101 SET @[email protected]@COLLATION_CONNECTION */; 
/*!40101 SET NAMES utf8 */; 
/*!40103 SET @[email protected]@TIME_ZONE */; 
/*!40103 SET TIME_ZONE='+00:00' */; 
/*!40014 SET @[email protected]@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; 
/*!40014 SET @[email protected]@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; 
/*!40101 SET @[email protected]@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; 
/*!40111 SET @[email protected]@SQL_NOTES, SQL_NOTES=0 */; 

-- 
-- Table structure for table `defers` 
-- 

DROP TABLE IF EXISTS `defers`; 
/*!40101 SET @saved_cs_client  = @@character_set_client */; 
/*!40101 SET character_set_client = utf8 */; 
CREATE TABLE `defers` (
    `mailtime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', 
    `msgid` char(16) NOT NULL DEFAULT '', 
    `email` char(255) NOT NULL DEFAULT '', 
    `transport_method` char(45) NOT NULL DEFAULT 'remote_smtp', 
    `host` char(255) NOT NULL DEFAULT '', 
    `ip` char(46) NOT NULL DEFAULT '', 
    `message` char(240) NOT NULL DEFAULT '', 
    `router` char(65) NOT NULL DEFAULT '', 
    `deliveryuser` char(30) NOT NULL DEFAULT '', 
    `deliverydomain` char(255) NOT NULL DEFAULT '', 
    `unique_id` int(11) unsigned NOT NULL DEFAULT '1', 
    PRIMARY KEY (`mailtime`,`msgid`,`email`,`unique_id`), 
    KEY `email_mailtime_index` (`email`,`mailtime`), 
    KEY `msgid_mailtime_index` (`msgid`,`mailtime`), 
    KEY `deliverydomain_mailtime_index` (`deliverydomain`,`mailtime`), 
    KEY `deliveryuser_mailtime_index` (`deliveryuser`,`mailtime`), 
    KEY `email_deliveryuser_mailtime_index` (`email`,`deliveryuser`,`mailtime`) 
) ENGINE=MyISAM DEFAULT CHARSET=latin1; 
/*!40101 SET character_set_client = @saved_cs_client */; 

-- 
-- Table structure for table `failures` 
-- 

DROP TABLE IF EXISTS `failures`; 
/*!40101 SET @saved_cs_client  = @@character_set_client */; 
/*!40101 SET character_set_client = utf8 */; 
CREATE TABLE `failures` (
    `mailtime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', 
    `msgid` char(16) NOT NULL DEFAULT '', 
    `email` char(255) NOT NULL DEFAULT '', 
    `transport_method` char(45) NOT NULL DEFAULT 'remote_smtp', 
    `host` char(255) NOT NULL DEFAULT '', 
    `ip` char(46) NOT NULL DEFAULT '', 
    `message` char(240) NOT NULL DEFAULT '', 
    `router` char(65) NOT NULL DEFAULT '', 
    `deliveryuser` char(30) NOT NULL DEFAULT '', 
    `deliverydomain` char(255) NOT NULL DEFAULT '', 
    `unique_id` int(11) unsigned NOT NULL DEFAULT '1', 
    PRIMARY KEY (`mailtime`,`msgid`,`email`,`unique_id`), 
    KEY `email_mailtime_index` (`email`,`mailtime`), 
    KEY `deliverydomain_mailtime_index` (`deliverydomain`,`mailtime`), 
    KEY `deliveryuser_mailtime_index` (`deliveryuser`,`mailtime`), 
    KEY `email_deliveryuser_mailtime_index` (`email`,`deliveryuser`,`mailtime`), 
    KEY `msgid_mailtime_index` (`msgid`,`mailtime`) 
) ENGINE=MyISAM DEFAULT CHARSET=latin1; 
/*!40101 SET character_set_client = @saved_cs_client */; 

-- 
-- Table structure for table `sends` 
-- 

DROP TABLE IF EXISTS `sends`; 
/*!40101 SET @saved_cs_client  = @@character_set_client */; 
/*!40101 SET character_set_client = utf8 */; 
CREATE TABLE `sends` (
    `mailtime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', 
    `msgid` char(16) NOT NULL DEFAULT '', 
    `email` char(255) NOT NULL DEFAULT '', 
    `processed` enum('0','1','2','3') NOT NULL DEFAULT '0', 
    `user` char(30) NOT NULL DEFAULT '', 
    `size` int(11) unsigned NOT NULL DEFAULT '0', 
    `ip` char(46) NOT NULL DEFAULT '', 
    `auth` char(30) NOT NULL DEFAULT '', 
    `host` char(255) NOT NULL DEFAULT '', 
    `domain` char(255) NOT NULL DEFAULT '', 
    `localsender` enum('0','1') NOT NULL DEFAULT '1', 
    `spamscore` double NOT NULL DEFAULT '0', 
    `unique_id` int(11) unsigned NOT NULL DEFAULT '1', 
    PRIMARY KEY (`mailtime`,`msgid`,`email`,`unique_id`), 
    KEY `mailtime_domain_user_msgid_index` (`mailtime`,`domain`,`user`,`msgid`), 
    KEY `user_mailtime_index` (`user`,`mailtime`), 
    KEY `msgid_user_index` (`msgid`,`user`), 
    KEY `domain_user_mailtime_index` (`domain`,`user`,`mailtime`), 
    KEY `email_mailtime_user_index` (`email`,`mailtime`,`user`), 
    KEY `user_mailtime_spamscore_ip_index` (`user`,`mailtime`,`spamscore`,`ip`) 
) ENGINE=MyISAM DEFAULT CHARSET=latin1; 
/*!40101 SET character_set_client = @saved_cs_client */; 

-- 
-- Table structure for table `smtp` 
-- 

DROP TABLE IF EXISTS `smtp`; 
/*!40101 SET @saved_cs_client  = @@character_set_client */; 
/*!40101 SET character_set_client = utf8 */; 
CREATE TABLE `smtp` (
    `mailtime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', 
    `msgid` char(16) NOT NULL DEFAULT '', 
    `email` char(255) NOT NULL DEFAULT '', 
    `processed` enum('0','1','2','3') NOT NULL DEFAULT '0', 
    `transport_method` char(45) NOT NULL DEFAULT 'remote_smtp', 
    `transport_is_remote` enum('0','1','2','3') NOT NULL DEFAULT '1', 
    `host` char(255) NOT NULL DEFAULT '', 
    `ip` char(46) NOT NULL DEFAULT '', 
    `deliveredto` char(255) NOT NULL DEFAULT '', 
    `router` char(65) NOT NULL DEFAULT '', 
    `deliveryuser` char(30) NOT NULL DEFAULT '', 
    `deliverydomain` char(255) NOT NULL DEFAULT '', 
    `counteddomain` char(255) NOT NULL DEFAULT '', 
    `countedtime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', 
    `countedhour` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', 
    `unique_id` int(11) unsigned NOT NULL DEFAULT '1', 
    PRIMARY KEY (`mailtime`,`msgid`,`email`,`deliveredto`,`router`,`unique_id`), 
    KEY `msgid_index` (`msgid`), 
    KEY `deliverydomain_mailtime_index` (`deliverydomain`,`mailtime`), 
    KEY `deliveryuser_mailtime_index` (`deliveryuser`,`mailtime`), 
    KEY `email_mailtime_index` (`email`,`mailtime`), 
    KEY `email_deliveryuser_mailtime_index` (`email`,`deliveryuser`,`mailtime`), 
    KEY `processed_transport_is_remote_index` (`processed`,`transport_is_remote`) 
) ENGINE=MyISAM DEFAULT CHARSET=latin1; 
/*!40101 SET character_set_client = @saved_cs_client */; 
/*!40103 SET [email protected]_TIME_ZONE */; 

/*!40101 SET [email protected]_SQL_MODE */; 
/*!40014 SET [email protected]_FOREIGN_KEY_CHECKS */; 
/*!40014 SET [email protected]_UNIQUE_CHECKS */; 
/*!40101 SET [email protected]_CHARACTER_SET_CLIENT */; 
/*!40101 SET [email protected]_CHARACTER_SET_RESULTS */; 
/*!40101 SET [email protected]_COLLATION_CONNECTION */; 
/*!40111 SET [email protected]_SQL_NOTES */; 

-- Dump completed on 2017-04-24 23:12:19 

Il est récupéré à partir d'un serveur WHM 11,52. Il semble que dans la dernière version de cPanel/WHM, la base de données n'est plus là. Je vous suggère d'ouvrir un ticket de support à cPanel et de demander.

En attendant, vous pouvez créer la base de données à partir de la structure de table que j'ai fournie. Je ne sais pas si exim enregistrera quoi que ce soit à l'intérieur car si elles ont supprimé la base de données, la configuration d'exim pourrait avoir changé et cela pourrait conduire à l'absence de journalisation dans la base de données.