Pagina 1 di 1

[RISOLTO][MySQL] importazione db

Inviato: lunedì 9 febbraio 2015, 15:23
da abranca
ciao ragazzi,

dopo recente formattazione sono a ripristinare i db di cui ho bisogno.
non riesco ad importarne uno.

ho un server su aruba con ubuntu server 14.04.
entro nel db che mi serve, con phpmyadmin, ed esporto tutte le tabelle.
dati del server su aruba:

Codice: Seleziona tutto

SERVER:
    Server: Localhost via UNIX socket
    Tipo di server: MySQL
    Versione del server: 5.5.41-0ubuntu0.14.04.1 - (Ubuntu)
    Versione protocollo: 10
    Utente: root@localhost
    Codifica caratteri del server: UTF-8 Unicode (utf8)
salvo il file arrivo al momento di importarlo in locale per ulteriori modifiche ma non me lo importa.
ovviamente creo il db vuoto e poi faccio l'import di tutte le tabelle.

allego i dati del server in locale

Codice: Seleziona tutto

SERVER LOCALE:
    Server: Localhost via UNIX socket
    Tipo di server: MySQL
    Versione del server: 5.5.41-0ubuntu0.14.10.1 - (Ubuntu)
    Versione protocollo: 10
    Utente: root@localhost
    Codifica caratteri del server: UTF-8 Unicode (utf8)
L'unica differenza è la versione di os.
Durante l'importazione va in errore, che allego.

Codice: Seleziona tutto



--
-- Database: `dbm`
--

-- --------------------------------------------------------

--
-- Struttura della tabella `allegatiaziendali`
--

CREATE TABLE IF NOT EXISTS `allegatiaziendali` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `nome` varchar(255) DEFAULT NULL,
  `tipo` varchar(128) DEFAULT NULL,
  `dati` mediumblob,
  `descrizione` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ;

Messaggio di MySQL: Documentazione
#1146 - Table 'dbm.allegatiaziendali' doesn't exist 
cosa c'è di sbagliato???
grazie a tutti

Re: [MySQL] importazione db

Inviato: martedì 10 febbraio 2015, 10:13
da jepessen
Da StackOverflow
I also had same problem in past. All had happend after moving database files to new location and after updating mysql server. All tables with InnoDB engine disappeared from my database. I was trying to recreate them, but mysql told me 1146: Table 'xxx' doesn't exist all the time until I had recreated my database and restarted mysql service.

I think there's a need to read about InnoDB table binaries.

Re: [MySQL] importazione db

Inviato: mercoledì 11 febbraio 2015, 15:02
da abranca
ottimo!
grazie jepessen!