Bonjour,

je dois exporter une base de donnée qui de mysql couplé avec php et symfony3, mais je rencontre un probleme:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
 
 mysql -u test -p"test" symfony < prod.sql 
ERROR 1067 (42000) at line 238: Invalid default value for 'ctime'
je suis avec mysql

voici ce que j'ai a cette ligne:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
 
CREATE TABLE IF NOT EXISTS `test` (
`id` int(11) unsigned NOT NULL,
  `factid` int(11) unsigned NOT NULL,
  `livrid` int(11) unsigned NOT NULL,
  `userid` int(11) unsigned NOT NULL,
  `status` varchar(255) NOT NULL,
  `type` varchar(255) NOT NULL DEFAULT 'sale',
  `numero` varchar(255) NOT NULL,
  `ctime` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `mtime` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `tmp_factureid` int(11) unsigned DEFAULT '0',
  `tmp_factnum` varchar(255) DEFAULT NULL,
  `tmp_factctime` datetime DEFAULT NULL,
  `pricesinfos` longtext NOT NULL COMMENT '(DC2Type:array)',
  `fullprice` decimal(12,2) NOT NULL DEFAULT '0.00',
  `taxinfos` longtext NOT NULL COMMENT '(DC2Type:array)',
  `payid` varchar(255) NOT NULL,
  `paymethod` varchar(255) NOT NULL,
  `livrinfos` longtext NOT NULL COMMENT '(DC2Type:array)',
  `orderip` varchar(255) DEFAULT NULL,
  `ebp` int(11) unsigned DEFAULT NULL,
  `codeclientebp` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
  `panierid` varchar(255) NOT NULL
) ENGINE=MyISAM AUTO_INCREMENT=434 DEFAULT CHARSET=utf8;
quel est la cause , il n'arrive pas à lire le format de date de la base ?
merci de vos réponse.