0 MatanzaLH Posted January 16, 2023 Posted January 16, 2023 (edited) Hi You need to update your phpmyadmin to the latest version. Edited January 16, 2023 by MatanzaLH Quote
0 Akbare Posted January 17, 2023 Posted January 17, 2023 5 hours ago, MatanzaLH said: Hi You need to update your phpmyadmin to the latest version. I tried to import via command also error is there a solution Quote
0 Emistry Posted January 17, 2023 Posted January 17, 2023 you may change the default value of your SQL table. ...datetime NOT NULL DEFAULT '0000-00-00 00:00:00', 1 1 Quote
0 Akbare Posted May 6, 2023 Posted May 6, 2023 On 4/4/2023 at 2:21 AM, AncestralPrivates said: Any solution for this error? just excute CREATE TABLE IF NOT EXISTS `party_bookings` ( `world_name` varchar(32) NOT NULL, `account_id` int(11) unsigned NOT NULL, `char_id` int(11) unsigned NOT NULL, `char_name` varchar(23) NOT NULL, `purpose` smallint(5) unsigned NOT NULL DEFAULT '0', `assist` tinyint(3) unsigned NOT NULL DEFAULT '0', `damagedealer` tinyint(3) unsigned NOT NULL DEFAULT '0', `healer` tinyint(3) unsigned NOT NULL DEFAULT '0', `tanker` tinyint(3) unsigned NOT NULL DEFAULT '0', `minimum_level` smallint(5) unsigned NOT NULL, `maximum_level` smallint(5) unsigned NOT NULL, `comment` varchar(255) NOT NULL DEFAULT '', `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`world_name`, `account_id`, `char_id`) ) ENGINE=MyISAM; Quote
0 chatterboy Posted February 13, 2024 Posted February 13, 2024 Other sol: Palitan mo lods yong datetime into timestamp Rok on! 1 Quote
0 Faiz Posted May 20 Posted May 20 On 1/17/2023 at 10:46 PM, Emistry said: you may change the default value of your SQL table. ...datetime NOT NULL DEFAULT '0000-00-00 00:00:00', @Emistry just provide the 1st solution. You have to edit main.sql and look for: CREATE TABLE IF NOT EXISTS `party_bookings` ( `world_name` varchar(32) NOT NULL, `account_id` int(11) unsigned NOT NULL, `char_id` int(11) unsigned NOT NULL, `char_name` varchar(23) NOT NULL, `purpose` smallint(5) unsigned NOT NULL DEFAULT '0', `assist` tinyint(3) unsigned NOT NULL DEFAULT '0', `damagedealer` tinyint(3) unsigned NOT NULL DEFAULT '0', `healer` tinyint(3) unsigned NOT NULL DEFAULT '0', `tanker` tinyint(3) unsigned NOT NULL DEFAULT '0', `minimum_level` smallint(5) unsigned NOT NULL, `maximum_level` smallint(5) unsigned NOT NULL, `comment` varchar(255) NOT NULL DEFAULT '', `created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`world_name`, `account_id`, `char_id`) ) ENGINE=MyISAM; Replace CURRENT_TIMESTAMP to this: '0000-00-00 00:00:00' And it will be like this: `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', Solved. Or you can use 2nd solution from @chatterboy which will be like this. `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, datetime to timestamp. Solved. Both methods are working just fine. If you're using CentOS 7, the problem persists, and the above method will solve the issue. There is no issue with Debian for now. Quote
Question
Alliance
Hi anyone know how to fix this?
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.