Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    Errore importazione database

    Salve a tutti, avrei un problema che spero voi siate in grado di risolvere. Sto tentando di trasferire un sito creato con Joomla temporaneamente su Altervista su un nuovo dominio. Dopo aver trasferito tutti i file nello spazio del nuovo hosting ho esportato il database per importarlo appunto nel sito nuovo (tutto tramite phpMyAdmin), solo che quando faccio per importarlo mi viene dato questo errore:

    query SQL:

    -- phpMyAdmin SQL Dump
    -- version 2.9.1
    -- http://www.phpmyadmin.net
    --
    -- Host: localhost
    -- Generato il: 09 Apr, 2009 at 02:48 PM
    -- Versione MySQL: 5.1.30
    -- Versione PHP: 4.4.9
    --
    -- Database: 'my_lukinho89'
    --
    CREATE DATABASE my_lukinho89 DEFAULT CHARACTER SET ;

    Messaggio di MySQL: Documentazione
    #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 '' at line 1

    Sinceramente, non capendone granche, non so cosa fare... Copio anche la prima riga di codice, magari riuscite a capire cosa non va...

    -- phpMyAdmin SQL Dump
    -- version 2.9.1
    -- http://www.phpmyadmin.net
    --
    -- Host: localhost
    -- Generato il: 09 Apr, 2009 at 02:34 PM
    -- Versione MySQL: 5.1.30
    -- Versione PHP: 4.4.9
    --
    -- Database: `my_lukinho89`
    --
    CREATE DATABASE `my_lukinho89` DEFAULT CHARACTER SET `my_lukinho89`;

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

    --
    -- Struttura della tabella `bak_banner`
    --

    CREATE TABLE `bak_banner` (
    `bid` int(11) NOT NULL auto_increment,
    `cid` int(11) NOT NULL default '0',
    `type` varchar(30) NOT NULL default 'banner',
    `name` varchar(255) NOT NULL default '',
    `alias` varchar(255) NOT NULL default '',
    `imptotal` int(11) NOT NULL default '0',
    `impmade` int(11) NOT NULL default '0',
    `clicks` int(11) NOT NULL default '0',
    `imageurl` varchar(100) NOT NULL default '',
    `clickurl` varchar(200) NOT NULL default '',
    `date` datetime default NULL,
    `showBanner` tinyint(1) NOT NULL default '0',
    `checked_out` tinyint(1) NOT NULL default '0',
    `checked_out_time` datetime NOT N

    Grazie in anticipo a tutti.

    Luca

  2. #2
    Moderatore di PHP L'avatar di Alhazred
    Registrato dal
    Oct 2003
    Messaggi
    12,445
    DEFAULT CHARACTER SET `my_lukinho89`;

    penso che qui debba esserci specificata la codifica che intendi usare per i caratteri, ad esempio utf8, non il nome del db.

  3. #3
    Ho modificato ma ora mi da quest'errore:

    query SQL:

    -- phpMyAdmin SQL Dump
    -- version 2.9.1
    -- http://www.phpmyadmin.net
    --
    -- Host: localhost
    -- Generato il: 09 Apr, 2009 at 05:06 PM
    -- Versione MySQL: 5.1.30
    -- Versione PHP: 4.4.9
    --
    -- Database: `my_lukinho89`
    --
    CREATE DATABASE `my_lukinho89` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;

    Messaggio di MySQL: Documentazione
    #1044 - Access denied for user 'ps3planetit'@'localhost' to database 'my_lukinho89'

    Non vuole proprio funzionare...

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.