Bonsoir,
je poste dans ce forum car ma bdd est une MySQL.
Mon problème est que si je veux importer une table (qui n'existe pas), PhpMyadmin me sort le message d'erreur suivant :Comment faire ?Tablespace for table '`ticket`.`license`' exists. Please DISCARD the tablespace before IMPORT.
Je précise que cette table existait au préalable.
Code sql : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 DROP TABLE IF EXISTS `license`; CREATE TABLE `license` ( `id_SESA` int(6) NOT NULL, `application_key` smallint(2) DEFAULT NULL, `currently_active` tinyint(1) DEFAULT NULL, `activate_date` date DEFAULT NULL, `deactivate_date` date DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; ALTER TABLE `license` ADD PRIMARY KEY (`id_SESA`); ALTER TABLE `license` ADD CONSTRAINT `fk_application` FOREIGN KEY (`application_key`) REFERENCES `application` (`application_key`);
Partager