2017-04-24 16 views
0

오늘 내 서버와 Eximstats 데이터베이스가 삭제되었습니다. 하지만 새로운 디자인처럼 보였으므로 Cpanel/WHM이 자동 업데이트되었다고 가정했습니다.Eximstats가 cpanel 업그레이드 후 삭제/제거되었습니다.

내가 실수라고 생각하고 데이터베이스를 복구해야하지만 전자 메일 배달 로그가 여전히 작동하므로이 정보가 어디에서 왔는지 모릅니다.

데이터베이스 복구를 시도하고 복구 도구가 데이터베이스를 삭제합니다! 새로운 구조와 같습니다!

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에 있으며 테이블은 약간 변경됩니다. 시간은 이제 유닉스 타임 스탬프로 기록되고 몇 가지가 사라졌습니다 (어쨌든 거의 무의미한 고유 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 구성이 변경 될 수 있고 이로 인해 데이터베이스에 로깅되지 않을 수 있습니다.