[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: errore database



mi sa che è la tabella information_schema il problema...
ho creato un database di appoggio, caricato il database (completo di inserimenti) e poi spostato i file nella cartella del db che mi serve ma ancora da errore.

la tabella information_schema posso cercare di recuperarla con lo stesso metodo?

Il 30/10/2013 14:41, Nicola Scattolin ha scritto:
mi sono risposto da solo

stando a quanto leggo, devo creare un database di appoggio, carico il database e poi sposto i file nella cartella del db che mi serve.
devo inserire solo la struttura o posso inserire anche i dati?

InnoDB: Error: table `1_whiterip`.`authmap` already exists in InnoDB internal Oct 30 14:38:44 srv01 mysqld: InnoDB: data dictionary. Have you deleted the .frm file Oct 30 14:38:44 srv01 mysqld: InnoDB: and not used DROP TABLE? Have you used DROP DATABASE Oct 30 14:38:44 srv01 mysqld: InnoDB: for InnoDB tables in MySQL version <= 3.23.43? Oct 30 14:38:44 srv01 mysqld: InnoDB: See the Restrictions section of the InnoDB manual. Oct 30 14:38:44 srv01 mysqld: InnoDB: You can drop the orphaned table inside InnoDB by Oct 30 14:38:44 srv01 mysqld: InnoDB: creating an InnoDB table with the same name in another Oct 30 14:38:44 srv01 mysqld: InnoDB: database and copying the .frm file to the current database. Oct 30 14:38:44 srv01 mysqld: InnoDB: Then MySQL thinks the table exists, and DROP TABLE will
Oct 30 14:38:44 srv01 mysqld: InnoDB: succeed.
Oct 30 14:38:44 srv01 mysqld: InnoDB: You can look for further help from
Oct 30 14:38:44 srv01 mysqld: InnoDB: http://dev.mysql.com/doc/refman/5.1/en/innodb-troubleshooting.html


Il 30/10/2013 14:33, Nicola Scattolin ha scritto:
ho provato a fare come mi hai suggerito, rinomino cartella e do permessi 000 cosi non ci legge, creo db, e poi eseguo il mio sql ma si blocca alla prima query di creazione tabella: ERROR 1005 (HY000) at line 33: Can't create table '1_whiterip.actions' (errno: 121)

dove la query è la seguente

CREATE TABLE `actions` (
`aid` varchar(255) NOT NULL DEFAULT '0' COMMENT 'Primary Key: Unique actions ID.', `type` varchar(32) NOT NULL DEFAULT '' COMMENT 'The object that that action acts on (node, user, comment, system or custom types.)', `callback` varchar(255) NOT NULL DEFAULT '' COMMENT 'The callback function that executes when the action runs.', `parameters` longblob NOT NULL COMMENT 'Parameters to be passed to the callback function.', `label` varchar(255) NOT NULL DEFAULT '0' COMMENT 'Label of the action.',
  PRIMARY KEY (`aid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores action information.';
/*!40101 SET character_set_client = @saved_cs_client */;

proprio non capisco cosa ci sia di sbagliato

Il 30/10/2013 14:16, Gian Uberto Lauri ha scritto:
Nicola Scattolin writes:
> io ho il backup del db in sql non dei file, se io rinomino la cartella o
  > la sposto, e poi ricreo il database da sql?
  >

Crei tabelle e database (che mysql partendo considererà non esistenti)
e poi vai con le import.




--
Nicola
Ser.Tec s.r.l.
Via E. Salgari 14/E
31056 Roncade, Treviso
http://dpidgprinting.com
http://twitter.com/sertecsrl
http://www.facebook.com/sertecsrl
http://www.youtube.com/sertectube


Reply to: