Hi guys when i try to upload my db it says
SQL query:
–
– 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 CURRENT_TIMESTAMP, 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’, adminjail_time 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
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Could you please addSET sql_mode = ''; at the beginning of the file and see if that works?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.