Visualizzazione risultati 1 fino 4 di 4

Discussione: problemi con query da backup mysql [era: mysql]

  1. #1
    Guest

    Unhappy problemi con query da backup mysql [era: mysql]

    oggi ho fatto un backup di un database di vbulletin 4.1.2
    ma quando sono andato a aggiungere una parte di backup mi da errore
    (dovevo inserire le sezioni del forum e sono andato nel DB > sql e o inserito questo codice



    [Struttura della tabella `forum`
    Codice:
    --
    
    CREATE TABLE IF NOT EXISTS `forum` (
      `forumid` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
      `styleid` smallint(5) unsigned NOT NULL DEFAULT '0',
      `title` varchar(100) NOT NULL DEFAULT '',
      `title_clean` varchar(100) NOT NULL DEFAULT '',
      `description` text,
      `description_clean` text,
      `options` int(10) unsigned NOT NULL DEFAULT '0',
      `showprivate` tinyint(3) unsigned NOT NULL DEFAULT '0',
      `displayorder` smallint(6) NOT NULL DEFAULT '0',
      `replycount` int(10) unsigned NOT NULL DEFAULT '0',
      `lastpost` int(11) NOT NULL DEFAULT '0',
      `lastposter` varchar(100) NOT NULL DEFAULT '',
      `lastposterid` int(10) unsigned NOT NULL DEFAULT '0',
      `lastpostid` int(10) unsigned NOT NULL DEFAULT '0',
      `lastthread` varchar(250) NOT NULL DEFAULT '',
      `lastthreadid` int(10) unsigned NOT NULL DEFAULT '0',
      `lasticonid` smallint(6) NOT NULL DEFAULT '0',
      `lastprefixid` varchar(25) NOT NULL DEFAULT '',
      `threadcount` mediumint(8) unsigned NOT NULL DEFAULT '0',
      `daysprune` smallint(6) NOT NULL DEFAULT '0',
      `newpostemail` text,
      `newthreademail` text,
      `parentid` smallint(6) NOT NULL DEFAULT '0',
      `parentlist` varchar(250) NOT NULL DEFAULT '',
      `password` varchar(50) NOT NULL DEFAULT '',
      `link` varchar(200) NOT NULL DEFAULT '',
      `childlist` text,
      `defaultsortfield` varchar(50) NOT NULL DEFAULT 'lastpost',
      `defaultsortorder` enum('asc','desc') NOT NULL DEFAULT 'desc',
      `imageprefix` varchar(100) NOT NULL DEFAULT '',
      `iconlocation` varchar(250) NOT NULL DEFAULT '',
      PRIMARY KEY (`forumid`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=55 ;
    
    --
    -- Dump dei dati per la tabella `forum`
    --
    
    INSERT INTO `forum` (`forumid`, `styleid`, `title`, `title_clean`, `description`, `description_clean`, `options`, `showprivate`, `displayorder`, `replycount`, `lastpost`, `lastposter`, `lastposterid`, `lastpostid`, `lastthread`, `lastthreadid`, `lasticonid`, `lastprefixid`, `threadcount`, `daysprune`, `newpostemail`, `newthreademail`, `parentid`, `parentlist`, `password`, `link`, `childlist`, `defaultsortfield`, `defaultsortorder`, `imageprefix`, `iconlocation`) VALUES
    (7, 0, 'Warezze Forum!', 'Warezze Forum!', '', '', 97987, 0, 1, 0, 0, '', 0, 0, '', 0, 0, '', 0, -1, '', '', -1, '7,-1', '', '', '7,8,9,34,35,10,36,-1', 'lastpost', 'desc', '', ''),
    (8, 0, 'Presentati', 'Presentati', 'Se sei un nuovo utente della community presentati adesso!', 'Se sei un nuovo utente della community presentati adesso!', 97991, 0, 1, 0, 0, '', 0, 0, '', 0, 0, '', 0, -1, '', '', 7, '8,7,-1', '', '', '8,-1', 'lastpost', 'desc', '', ''),
    (9, 0, 'Comunicazioni dallo staff', 'Comunicazioni dallo staff', 'Comunicazioni importanti da leggere', 'Comunicazioni importanti da leggere', 97991, 0, 1, 0, 0, '', 0, 0, '', 0, 0, '', 0, -1, '', '', 7, '9,7,-1', '', '', '9,34,35,-1', 'lastpost', 'desc', '', ''),
    (10, 0, 'Proposte Per Il Forum', 'Proposte Per Il Forum', 'In questa sezione puoi esporre delle Idee che ritieni utili per la Community', 'In questa sezione puoi esporre delle Idee che ritieni utili per la Community', 97991, 0, 1, 0, 0, '', 0, 0, '', 0, 0, '', 0, -1, '', '', 7, '10,7,-1', '', '', '10,36,-1', 'lastpost', 'desc', '', ''),
    (11, 0, 'Warezze Giochi e progetti', 'Warezze Giochi e progetti', '', '', 97987, 0, 1, 0, 0, '', 0, 0, '', 0, 0, '', 0, -1, '', '', -1, '11,-1', '', '', '11,12,13,37,38,14,-1', 'lastpost', 'desc', '', ''),
    (16, 0, 'Graphic Tutorials', 'Graphic Tutorials', 'Tantissimi tutorial grafici per soddisfare la tua sete graficosa!', 'Tantissimi tutorial grafici per soddisfare la tua sete graficosa!', 97991, 0, 1, 0, 0, '', 0, 0, '', 0, 0, '', 0, -1, '', '', 15, '16,15,-1', '', '', '16,39,-1', 'lastpost', 'desc', '', ''),
    (17, 0, 'I Tuoi Lavori', 'I Tuoi Lavori', 'Qui, raccolti tutti i lavori degli utenti del forum.', 'Qui, raccolti tutti i lavori degli utenti del forum.', 97991, 0, 1, 0, 0, '', 0, 0, '', 0, 0, '', 0, -1, '', '', 15, '17,15,-1', '', '', '17,40,-1', 'lastpost', 'desc', '', ''),
    (18, 0, 'Richieste Grafiche', 'Richieste Grafiche', 'Hai bisogno di un immagine? Chiedi pure :)', 'Hai bisogno di un immagine? Chiedi pure :)', 97991, 0, 1, 0, 0, '', 0, 0, '', 0, 0, '', 0, -1, '', '', 15, '18,15,-1', '', '', '18,-1', 'lastpost', 'desc', '', ''),
    (19, 0, 'Warezze Computer e Web', 'Warezze Computer e Web', '', '', 97987, 0, 1, 0, 0, '', 0, 0, '', 0, 0, '', 0, -1, '', '', -1, '19,-1', '', '', '19,20,41,21,42,43,22,23,44,45,24,46,47,48,-1', 'lastpost', 'desc', '', ''),
    (20, 0, 'Sistemi Operativi', 'Sistemi Operativi', 'SO: Sistema Operativo. E'' un insieme di subroutine e strutture dati responsabile del controllo e della gestione dei componenti hardware che costituiscono un computer e dei programmi che su di esso vengono eseguiti.', 'SO: Sistema Operativo. E'' un insieme di subroutine e strutture dati responsabile del controllo e della gestione dei componenti hardware che costituiscono un computer e dei programmi che su di esso vengono eseguiti.', 97991, 0, 1, 0, 0, '', 0, 0, '', 0, 0, '', 0, -1, '', '', 19, '20,19,-1', '', '', '20,41,-1', 'lastpost', 'desc', '', ''),
    (22, 0, 'Hosting & Server', 'Hosting & Server', 'Parlate e discutete dei vostri Hosting e Server preferiti.', 'Parlate e discutete dei vostri Hosting e Server preferiti.', 97991, 0, 1, 0, 0, '', 0, 0, '', 0, 0, '', 0, -1, '', '', 19, '22,19,-1', '', '', '22,-1', 'lastpost', 'desc', '', ''),
    (23, 0, 'Windows Live Messanger', 'Windows Live Messanger', 'Più diffuso sistema di comunicazione tra giovani. Orientati in base alle Sotto-Sezioni.', 'Più diffuso sistema di comunicazione tra giovani. Orientati in base alle Sotto-Sezioni.', 97991, 0, 1, 0, 0, '', 0, 0, '', 0, 0, '', 0, -1, '', '', 19, '23,19,-1', '', '', '23,44,45,-1', 'lastpost', 'desc', '', ''),
    (24, 0, 'Hardware', 'Hardware', 'Tutto sugli Hardware per Pc e telefonia.', 'Tutto sugli Hardware per Pc e telefonia.', 97991, 0, 1, 0, 0, '', 0, 0, '', 0, 0, '', 0, -1, '', '', 19, '24,19,-1', '', '', '24,46,47,48,-1', 'lastpost', 'desc', '', ''),
    (25, 0, 'Warezze MMOs', 'Warezze MMOs', '', '', 97987, 0, 1, 0, 0, '', 0, 0, '', 0, 0, '', 0, -1, '', '', -1, '25,-1', '', '', '25,26,27,49,28,-1', 'lastpost', 'desc', '', ''),
    (26, 0, 'GTA', 'GTA', 'GTA, gioco prodotto dalla nota "Rockstar Games", di cui è stato prodotto anche il multiplayer conosciuto anche come: SA:MP (San andreas) & IV:MP (GTA 4)', 'GTA, gioco prodotto dalla nota "Rockstar Games", di cui è stato prodotto anche il multiplayer conosciuto anche come: SA:MP (San andreas) & IV:MP (GTA 4)', 97991, 0, 1, 0, 0, '', 0, 0, '', 0, 0, '', 0, -1, '', '', 25, '26,25,-1', '', '', '26,-1', 'lastpost', 'desc', '', ''),
    (27, 0, 'Metin2', 'Metin2', 'Un bellissimo e popolatissimo MMORPG che ha spopolato nel mondo del Web e dei giochi d''avventura online. Qui troverai guide, tattiche, bug e bot!', 'Un bellissimo e popolatissimo MMORPG che ha spopolato nel mondo del Web e dei giochi d''avventura online. Qui troverai guide, tattiche, bug e bot!', 97991, 0, 1, 0, 0, '', 0, 0, '', 0, 0, '', 0, -1, '', '', 25, '27,25,-1', '', '', '27,49,-1', 'lastpost', 'desc', '', ''),
    (49, 0, 'Guide', 'Guide', '', '', 97991, 0, 1, 0, 0, '', 0, 0, '', 0, 0, '', 0, -1, '', '', 27, '49,27,25,-1', '', '', '49,-1', 'lastpost', 'desc', '', ''),
    (50, 0, 'Assistenza Tecnica', 'Assistenza Tecnica', '', '', 97991, 0, 1, 0, 0, '', 0, 0, '', 0, 0, '', 0, -1, '', '', 32, '50,32,29,-1', '', '', '50,-1', 'lastpost', 'desc', '', ''),
    (51, 0, 'Guide e Release', 'Guide e Release', '', '', 97991, 0, 1, 0, 0, '', 0, 0, '', 0, 0, '', 0, -1, '', '', 32, '51,32,29,-1', '', '', '51,-1', 'lastpost', 'desc', '', ''),
    (52, 0, 'Cms e Server', 'Cms e Server', '', '', 97991, 0, 1, 0, 0, '', 0, 0, '', 0, 0, '', 0, -1, '', '', 32, '52,32,29,-1', '', '', '52,-1', 'lastpost', 'desc', '', ''),
    (53, 0, 'Il Tuo Retroserver Habbo.', 'Il Tuo Retroserver Habbo.', '', '', 97991, 0, 1, 0, 0, '', 0, 0, '', 0, 0, '', 0, -1, '', '', 32, '53,32,29,-1', '', '', '53,-1', 'lastpost', 'desc', '', ''),
    (54, 0, 'Development', 'Development', '', '', 97991, 0, 1, 0, 0, '', 0, 0, '', 0, 0, '', 0, -1, '', '', 32, '54,32,29,-1', '', '', '54,-1', 'lastpost', 'desc', '', '');
    ]
    ma mi da questo errore

    Codice:
    Errore
    query SQL:
    
    Struttura della tabella `forum` -- CREATE TABLE IF NOT EXISTS `forum` ( `forumid` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `styleid` smallint(5) unsigned NOT NULL DEFAULT '0', `title` varchar(100) NOT NULL DEFAULT '', `title_clean` varchar(100) NOT NULL DEFAULT '', `description` text, `description_clean` text, `options` int(10) unsigned NOT NULL DEFAULT '0', `showprivate` tinyint(3) unsigned NOT NULL DEFAULT '0', `displayorder` smallint(6) NOT NULL DEFAULT '0', `replycount` int(10) unsigned NOT NULL DEFAULT '0', `lastpost` int(11) NOT NULL DEFAULT '0', `lastposter` varchar(100) NOT NULL DEFAULT '', `lastposterid` int(10) unsigned NOT NULL DEFAULT '0', `lastpostid` int(10) unsigned NOT NULL DEFAULT '0', `lastthread` varchar(250) NOT NULL DEFAULT '', `lastthreadid` int(10) unsigned NOT NULL DEFAULT '0', `lasticonid` smallint(6) NOT NULL DEFAULT '0', `lastprefixid` varchar(25) NOT NULL DEFAULT '', `threadcount` mediumint(8)[...]
    
    Messaggio di MySQL: 
    
    #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Struttura della tabella `forum`
    
    CREATE TABLE IF NOT EXISTS `forum` (
      `foru' at line 1

    sapete come risolverlo??


    p.s ho accorciato un po il codice perche non entrava ma o lasciato linizio e la fine o cancellato al centro
    Ultima modifica di dreadnaut : 15-04-2011 alle ore 18.46.59 Motivo: + tag [code]

  2. #2
    L'avatar di alemoppo
    alemoppo non è connesso Staff AV
    Data registrazione
    24-08-2008
    Residenza
    PU / BO
    Messaggi
    22,247

    Predefinito

    Nella query,
    Codice:
    Struttura della tabella `forum` -- CREATE TABLE IF NOT EXISTS `forum` ( `forumid` smallint(5) unsigned NOT NULL AUTO_INCREME
    I caratteri:
    Codice:
    Struttura della tabella `forum` --
    Non sono comandi sql. Prova a eliminarli... oppure PRESUMO facciano parte della query precedente.. boh... Ma messo lì in quel modo è errato..

    Ciao!

  3. #3
    Guest

    Predefinito

    grazie mille funziona come ti posso votare?

  4. #4
    L'avatar di alemoppo
    alemoppo non è connesso Staff AV
    Data registrazione
    24-08-2008
    Residenza
    PU / BO
    Messaggi
    22,247

    Predefinito

    Citazione Originalmente inviato da warezze Visualizza messaggio
    grazie mille funziona come ti posso votare?
    Non si può votare in questo forum....
    Gli utenti (dovrebbero) scrivere per aiutare gli altri... senza compenso..

    Ciao!

Regole di scrittura

  • Non puoi creare nuove discussioni
  • Non puoi rispondere ai messaggi
  • Non puoi inserire allegati.
  • Non puoi modificare i tuoi messaggi
  •