[RISOLTO][MySQL] importazione db

Installazione, configurazione e uso di Ubuntu come server: web, ftp, mail, news, proxy, dns e altro.
abranca
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 306
Iscrizione: mercoledì 23 gennaio 2013, 11:48
Desktop: Gnome
Distribuzione: Ubuntu GNOME 15.04
Sesso: Maschile

[RISOLTO][MySQL] importazione db

Messaggio 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
Ultima modifica di abranca il mercoledì 11 febbraio 2015, 15:02, modificato 1 volta in totale.
Avatar utente
jepessen
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3569
Iscrizione: lunedì 26 dicembre 2005, 11:49
Desktop: KDevelop
Distribuzione: Ubuntu 20.04
Sesso: Maschile
Località: Somma Lombardo

Re: [MySQL] importazione db

Messaggio 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.
Compiz l'ha creato Chuck Norris quando ha colpito un computer con un calcio rotante.
http://www.renderosity.com/mod/gallery/ ... e=Jepessen
http://jepessen.wordpress.com/
abranca
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 306
Iscrizione: mercoledì 23 gennaio 2013, 11:48
Desktop: Gnome
Distribuzione: Ubuntu GNOME 15.04
Sesso: Maschile

Re: [MySQL] importazione db

Messaggio da abranca »

ottimo!
grazie jepessen!
Scrivi risposta

Ritorna a “Ubuntu su server”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 13 ospiti