Newbie Spellweaver
- Joined
- Jul 25, 2018
- Messages
- 13
- Reaction score
- 2
So when I drop my al_server_ls in my navi cat this error code pops up. Sorry in advance for this throw up wall of text. But the 2 erros are as follows.
1.) [ERR] 1067 - Invalid default value for 'time'
2.) [ERR] SET FOREIGN_KEY_CHECKS=0;
This is the entire error log down below.
AL-Login SQL file to navicat error code. [SQL] Query al_server_ls start [ERR] 1067 - Invalid default value for 'time' [ERR] SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for account_data -- ---------------------------- DROP TABLE IF EXISTS `account_data`; CREATE TABLE `account_data` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, `password` varchar(65) NOT NULL, `activated` tinyint(1) NOT NULL DEFAULT '1', `access_level` tinyint(3) NOT NULL DEFAULT '0', `membership` tinyint(3) NOT NULL DEFAULT '0', `old_membership` tinyint(3) NOT NULL DEFAULT '0', `last_server` tinyint(3) NOT NULL DEFAULT '-1', `last_ip` varchar(20) DEFAULT NULL, `last_mac` varchar(20) NOT NULL DEFAULT 'xx-xx-xx-xx-xx-xx', `ip_force` varchar(20) DEFAULT NULL, `expire` date DEFAULT NULL, `toll` bigint(13) NOT NULL DEFAULT '0', `email` varchar(50) DEFAULT NULL, `question` varchar(50) DEFAULT NULL, `answer` varchar(50) DEFAULT NULL, `balance` float DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of account_data -- ---------------------------- -- ---------------------------- -- Table structure for account_playtime -- ---------------------------- DROP TABLE IF EXISTS `account_playtime`; CREATE TABLE `account_playtime` ( `account_id` int(10) unsigned NOT NULL, `accumulated_online` int(10) unsigned NOT NULL DEFAULT '0', `lastupdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`account_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of account_playtime -- ---------------------------- -- ---------------------------- -- Table structure for account_rewards -- ---------------------------- DROP TABLE IF EXISTS `account_rewards`; CREATE TABLE `account_rewards` ( `uniqId` int(11) NOT NULL AUTO_INCREMENT, `accountId` int(11) NOT NULL, `added` varchar(70) NOT NULL DEFAULT '', `points` decimal(20,0) NOT NULL DEFAULT '0', `received` varchar(70) NOT NULL DEFAULT '0', `rewarded` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`uniqId`), KEY `FK_account_rewards` (`accountId`), CONSTRAINT `FK_account_rewards` FOREIGN KEY (`accountId`) REFERENCES `account_data` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of account_rewards -- ---------------------------- -- ---------------------------- -- Table structure for account_time -- ---------------------------- DROP TABLE IF EXISTS `account_time`; CREATE TABLE `account_time` ( `account_id` int(11) NOT NULL, `last_active` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `expiration_time` timestamp NULL DEFAULT NULL, `session_duration` int(10) DEFAULT '0', `accumulated_online` int(10) DEFAULT '0', `accumulated_rest` int(10) DEFAULT '0', `penalty_end` timestamp NULL DEFAULT NULL, PRIMARY KEY (`account_id`), CONSTRAINT `FK_account_time` FOREIGN KEY (`account_id`) REFERENCES `account_data` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of account_time -- ---------------------------- -- ---------------------------- -- Table structure for banned_ip -- ---------------------------- DROP TABLE IF EXISTS `banned_ip`; CREATE TABLE `banned_ip` ( `id` int(11) NOT NULL AUTO_INCREMENT, `mask` varchar(45) NOT NULL, `time_end` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `mask` (`mask`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of banned_ip -- ---------------------------- -- ---------------------------- -- Table structure for banned_mac -- ---------------------------- DROP TABLE IF EXISTS `banned_mac`; CREATE TABLE `banned_mac` ( `uniId` int(10) NOT NULL AUTO_INCREMENT, `address` varchar(20) NOT NULL, `time` timestamp NOT NULL DEFAULT '0000-00-00
1.) [ERR] 1067 - Invalid default value for 'time'
2.) [ERR] SET FOREIGN_KEY_CHECKS=0;
This is the entire error log down below.
AL-Login SQL file to navicat error code. [SQL] Query al_server_ls start [ERR] 1067 - Invalid default value for 'time' [ERR] SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for account_data -- ---------------------------- DROP TABLE IF EXISTS `account_data`; CREATE TABLE `account_data` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, `password` varchar(65) NOT NULL, `activated` tinyint(1) NOT NULL DEFAULT '1', `access_level` tinyint(3) NOT NULL DEFAULT '0', `membership` tinyint(3) NOT NULL DEFAULT '0', `old_membership` tinyint(3) NOT NULL DEFAULT '0', `last_server` tinyint(3) NOT NULL DEFAULT '-1', `last_ip` varchar(20) DEFAULT NULL, `last_mac` varchar(20) NOT NULL DEFAULT 'xx-xx-xx-xx-xx-xx', `ip_force` varchar(20) DEFAULT NULL, `expire` date DEFAULT NULL, `toll` bigint(13) NOT NULL DEFAULT '0', `email` varchar(50) DEFAULT NULL, `question` varchar(50) DEFAULT NULL, `answer` varchar(50) DEFAULT NULL, `balance` float DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of account_data -- ---------------------------- -- ---------------------------- -- Table structure for account_playtime -- ---------------------------- DROP TABLE IF EXISTS `account_playtime`; CREATE TABLE `account_playtime` ( `account_id` int(10) unsigned NOT NULL, `accumulated_online` int(10) unsigned NOT NULL DEFAULT '0', `lastupdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`account_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of account_playtime -- ---------------------------- -- ---------------------------- -- Table structure for account_rewards -- ---------------------------- DROP TABLE IF EXISTS `account_rewards`; CREATE TABLE `account_rewards` ( `uniqId` int(11) NOT NULL AUTO_INCREMENT, `accountId` int(11) NOT NULL, `added` varchar(70) NOT NULL DEFAULT '', `points` decimal(20,0) NOT NULL DEFAULT '0', `received` varchar(70) NOT NULL DEFAULT '0', `rewarded` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`uniqId`), KEY `FK_account_rewards` (`accountId`), CONSTRAINT `FK_account_rewards` FOREIGN KEY (`accountId`) REFERENCES `account_data` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of account_rewards -- ---------------------------- -- ---------------------------- -- Table structure for account_time -- ---------------------------- DROP TABLE IF EXISTS `account_time`; CREATE TABLE `account_time` ( `account_id` int(11) NOT NULL, `last_active` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `expiration_time` timestamp NULL DEFAULT NULL, `session_duration` int(10) DEFAULT '0', `accumulated_online` int(10) DEFAULT '0', `accumulated_rest` int(10) DEFAULT '0', `penalty_end` timestamp NULL DEFAULT NULL, PRIMARY KEY (`account_id`), CONSTRAINT `FK_account_time` FOREIGN KEY (`account_id`) REFERENCES `account_data` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of account_time -- ---------------------------- -- ---------------------------- -- Table structure for banned_ip -- ---------------------------- DROP TABLE IF EXISTS `banned_ip`; CREATE TABLE `banned_ip` ( `id` int(11) NOT NULL AUTO_INCREMENT, `mask` varchar(45) NOT NULL, `time_end` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `mask` (`mask`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of banned_ip -- ---------------------------- -- ---------------------------- -- Table structure for banned_mac -- ---------------------------- DROP TABLE IF EXISTS `banned_mac`; CREATE TABLE `banned_mac` ( `uniId` int(10) NOT NULL AUTO_INCREMENT, `address` varchar(20) NOT NULL, `time` timestamp NOT NULL DEFAULT '0000-00-00
You must be registered to see links
' ON UPDATE CURRENT_TIMESTAMP, `details` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`uniId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Rec [SQL] Finished with error