Question

Error import my db

Posted June 30, 2018 1.2k views
MySQLDebian

Hi guys when i try to upload my db it says

SQL query:

– Database: amg

– Table structure for table accounts
CREATE TABLE accounts (
id int(11) NOT NULL,
username text,
password varchar(32) NOT NULL,
salt varchar(30) NOT NULL DEFAULT ‘1234567890’,
email varchar(100) NOT NULL,
registerdate datetime DEFAULT CURRENTTIMESTAMP,
lastlogin datetime DEFAULT NULL,
ip text,
admin float NOT NULL DEFAULT '0’,
supporter float NOT NULL DEFAULT '0’,
vct float NOT NULL DEFAULT '0’,
mapper float NOT NULL DEFAULT '0’,
scripter float NOT NULL DEFAULT '0’,
warn
style int(1) NOT NULL DEFAULT '1’,
hiddenadmin tinyint(3) UNSIGNED DEFAULT '0’,
adminjail tinyint(3) UNSIGNED DEFAULT '0’,
adminjailtime int(11) DEFAULT NULL,
adminjail
by text,
adminjail_reason text,
muted tinyint(3) UNSIGNED DEFAULT '0’,
globalooc tinyint(3) UNSIGNED DEFAULT '1’,
friendsmessage varchar(255) NOT NULL DEFAULT 'Hi!’[…]
MySQL قال: مستندات وثائقية

1067 - Invalid default value for 'registerdate’

can you help me how to fix this error :D

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Could you please addSET sql_mode = ''; at the beginning of the file and see if that works?

Submit an Answer