2017-04-24 85 views
0

今天我正在審查我的服務器和Eximstats數據庫消失了!但我看起來像一個新的設計,所以我認爲Cpanel/WHM是autoupdated。cpanel升級後eximstats消失/消除

我認爲這是一個錯誤,我不得不修複數據庫,但電子郵件傳遞日誌仍然有效,所以我不知道這些信息是從哪裏來的。

我試圖修復數據庫和修復工具刪除數據庫!就像一個新的結構!

我想知道是否有人知道是否有不使用eximstats數據庫的任何exim版本,如果信息從不同的數據庫或文件中提取,以及如何再次讀取此數據庫。

我需要這個數據庫,因爲我有一個使用這個數據庫開發的應用程序。

感謝您的幫助!

+0

類似的問題在這裏:https://stackoverflow.com/questions/44499844/cant-access-eximstats-sqlite3-db-after-whm64-upgrade – Konservin

回答

0

從版本64開始,cPanel將eximstats數據從MySQL遷移到SQLite3。新數據庫位於/var/cpanel/eximstats_db.sqlite3中,表格稍有更改。現在時間被記錄爲unix時間戳,並且有幾件事情沒有了(就像無論如何都是毫無意義的獨特ID)。希望這可以幫助。

0

的eximstats數據庫結構如下(缺省表按的cPanel /安裝WHM):

-- 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 

這是從一個WHM 11.52服務器截取。看來在最新的cPanel/WHM版本中,數據庫已經不存在了。我建議你打開cPanel的支持憑單並詢問。

同時,您可以從我提供的表格結構創建數據庫。不知道exim是否會記錄任何東西,因爲如果他們刪除了數據庫,那麼exim配置可能已經改變,這可能導致不記錄到數據庫。

相關問題