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

    importare database mysql

    ciao! ho provato ad importare un database mysql che avevo esportato da un'altro computer in locale ma mi da questo errore, cosa dovrei fare?

    Errore
    Pare che ci sia un errore nella query SQL immessa. L'errore del server MySQL mostrato qui sotto, se c'è, può anche aiutare nella risoluzione del problema

    ERROR: Stringa di Punctuation Sconosciuta @ 220
    STR: />
    SQL: -- phpMyAdmin SQL Dump
    -- version 2.9.1.1
    -- http://www.phpmyadmin.net
    --
    -- Host: localhost
    -- Generato il: 10 Gen, 2007 at 12:46 PM
    -- Versione MySQL: 5.0.27
    -- Versione PHP: 5.2.0
    --
    -- Database: `ecom_db`
    --


    Warning: Cannot modify header information - headers already sent by (output started at C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\export.php: 150) in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\libraries\h eader_http.inc.php on line 13



    Warning: Cannot modify header information - headers already sent by (output started at C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\export.php: 150) in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\libraries\h eader_http.inc.php on line 14



    Warning: Cannot modify header information - headers already sent by (output started at C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\export.php: 150) in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\libraries\h eader_http.inc.php on line 15



    Warning: Cannot modify header information - headers already sent by (output started at C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\export.php: 150) in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\libraries\h eader_http.inc.php on line 16



    Warning: Cannot modify header information - headers already sent by (output started at C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\export.php: 150) in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\libraries\h eader_http.inc.php on line 19

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" lang="it" dir="ltr">
    <head>
    <link rel="icon" href="./favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
    <title>phpMyAdmin</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="./css/phpmyadmin.css.php?token=e9b7296b5ffe23ee43e50bac4 3a328c5&amp;js_frame=right" />
    <link rel="stylesheet" type="text/css" href="./css/print.css?token=e9b7296b5ffe23ee43e50bac43a328c5" media="print" />
    <script type="text/javascript" language="javascript">
    // <![CDATA[
    // Updates the title of the frameset if possible (ns4 does not allow this)
    if (typeof(parent.document) != 'undefined' && typeof(parent.document) != 'unknown'
    && typeof(parent.document.title) == 'string') {
    parent.document.title = 'localhost / localhost / ecom_db / clienti | phpMyAdmin 2.9.1.1';


    query SQL:

    -- phpMyAdmin SQL Dump -- version 2.9.1.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generato il: 10 Gen, 2007 at 12:46 PM -- Versione MySQL: 5.0.27 -- Versione PHP: 5.2.0 -- -- Database: `ecom_db` --
    Warning: Cannot modify header information - headers already sent by (output started at C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\export.php: 150) in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\libraries\h eader_http.inc.php on line 13

    Warning: Cannot modify header information - headers already sent by (output started at C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\export.php: 150) in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\libraries\h eader_http.inc.php on line 14

    Warning: Cannot modify header information - headers already sent by (output started at C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\export.php: 150) in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\libraries\h eader_http.inc.php on line 15

    Warning: Cannot modify header information - headers already sent by (output started at C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\export.php: 150) in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\libraries\h eader_http.inc.php on line 16

    Warning: Cannot modify header information - headers already sent by (output started at C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\export.php: 150) in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\libraries\h eader_http.inc.php on line 19


  2. #2
    up

  3. #3
    non e' mica chiara la cosa...

    su che macchina ti da l'errore? (versioni .... )

    phpmyadmin 2.9.1.1 vuole le sessioni attive, quindi cookie e file temporanei devono essere funzionanti.

    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

  4. #4
    xp service pack 2
    cookie e file temporanei credo ke siamo funzionanti forse ci sono dei settaggi che devo fare??

  5. #5
    Originariamente inviato da amnesiac
    xp service pack 2
    cookie e file temporanei credo ke siamo funzionanti forse ci sono dei settaggi che devo fare??
    si, ma la versione di php/mysql? carichi su locale o su remoto?

    credo che ... non dice nulla. Bisogna che nel php.ini siano impostati i parametri necessari a gestire la sessione, specie il path per i file.

    Controlla lo script .sql Forse hai dei caratteri errati oppure il file non e' in formato per windows ....

    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

  6. #6
    mysql 5 php 5.2 mi puoi dire cosa devo modificare nel php.ini??

  7. #7
    Originariamente inviato da amnesiac
    mysql 5 php 5.2 mi puoi dire cosa devo modificare nel php.ini??
    prima di tutto bisognerebbe capire per bene lo scenario di lavoro. Gia' chiesto tre volte e rispondi solo a mugugni.... per scenari si intendono:

    localizzazione del db (remoto o locale), tipo di OS (origine e destinazione del dum) e versioni apache/php/mysql di destinazione (come e' composto il dump lo si legge dall'intestazione).

    Se non funziona con phpmyadmin prova da shell, oppure con "mysql administrator". nel php.ini devi verificare che nella sezione [session] tutti i parametri siano corretti. Ma il discorso php.ini "NON" vale per mysql, ma per le esigneze di phpmyadmin.

    Resta probabile che il file esportato sia in formato unix mentre tu lo carichi con windows. Quindi se lo apri con un editor e poi lo salvi dovresti "aggiustare" il formato. Nel frattempo vedi che non ci siano caratteri "strani" nel file di dump.

    L'errore che ricevi e' di tipo sconosciuto e questo fa pensare a qualche carattere indebito od errato nel file di dump.

    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

  8. #8
    ciao piero_mac scusa ma ieri non ci sono stata, puoi aiutarmi a fare questo trasferimento di db??
    si tratta di trasferire il db da un computer ad un altro per ora, quindi in locale le versioni di php my sql e apache sono le ultime
    Apache 2.2, PHP 5.2 e MySQL 5 su Windows xp

    ho settato register global a on, ho dato il permesso di scrittura alla cartella temp e ho inserito nel php.ini questa riga
    session.save_path = "C:\Documents and Settings\utente\Impostazioni locali\temp"

    ora volevo provare a esportare dal command line client
    come devo a fare:
    io so così:
    mysqldump ecom_db > ecomdbimport.sql
    ma mi da
    ->
    e non so come continuare!mi potete aiutare??

    il file dove mi da l'errore è questo.

    Codice PHP:
    <?php
    /* $Id: header_http.inc.php 7900 2005-11-24 08:15:00Z nijel $ */
    // vim: expandtab sw=4 ts=4 sts=4:

    if (isset($_REQUEST['GLOBALS']) || isset($_FILES['GLOBALS'])) {
        die(
    "GLOBALS overwrite attempt");
    }

    /**
     * Sends http headers
     */
    $GLOBALS['now'] = gmdate('D, d M Y H:i:s') . ' GMT';
    header('Expires: ' $GLOBALS['now']); // rfc2616 - Section 14.21
    header('Last-Modified: ' $GLOBALS['now']);
    header('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
    header('Pragma: no-cache'); // HTTP/1.0
    if (!defined('IS_TRANSFORMATION_WRAPPER')) {
        
    // Define the charset to be used
        
    header('Content-Type: text/html; charset=' $GLOBALS['charset']);
    }
    ?>
    e il file di dump è questo:

    -- phpMyAdmin SQL Dump
    -- version 2.9.1.1
    -- http://www.phpmyadmin.net
    --
    -- Host: localhost
    -- Generato il: 10 Gen, 2007 at 12:46 PM
    -- Versione MySQL: 5.0.27
    -- Versione PHP: 5.2.0
    --
    -- Database: `ecom_db`
    --


    Warning: Cannot modify header information - headers already sent by (output started at C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\export.php: 150) in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\libraries\h eader_http.inc.php on line 13



    Warning: Cannot modify header information - headers already sent by (output started at C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\export.php: 150) in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\libraries\h eader_http.inc.php on line 14



    Warning: Cannot modify header information - headers already sent by (output started at C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\export.php: 150) in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\libraries\h eader_http.inc.php on line 15



    Warning: Cannot modify header information - headers already sent by (output started at C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\export.php: 150) in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\libraries\h eader_http.inc.php on line 16



    Warning: Cannot modify header information - headers already sent by (output started at C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\export.php: 150) in C:\Programmi\Apache Software Foundation\Apache2.2\htdocs\phpmyadmin\libraries\h eader_http.inc.php on line 19

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" lang="it" dir="ltr">
    <head>
    <link rel="icon" href="./favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
    <title>phpMyAdmin</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="./css/phpmyadmin.css.php?token=e9b7296b5ffe23ee43e50bac4 3a328c5&amp;js_frame=right" />
    <link rel="stylesheet" type="text/css" href="./css/print.css?token=e9b7296b5ffe23ee43e50bac43a328c5" media="print" />
    <script type="text/javascript" language="javascript">
    // <![CDATA[
    // Updates the title of the frameset if possible (ns4 does not allow this)
    if (typeof(parent.document) != 'undefined' && typeof(parent.document) != 'unknown'
    && typeof(parent.document.title) == 'string') {
    parent.document.title = 'localhost / localhost / ecom_db / clienti | phpMyAdmin 2.9.1.1';
    }

    // ]]>
    </script>

    <script src="./js/tooltip.js" type="text/javascript"
    language="javascript"></script>
    <meta name="OBGZip" content="false" />
    <!--[if IE 6]>
    <style type="text/css">
    /* <![CDATA[ */
    html {
    overflow-y: scroll;
    }
    /* ]]> */
    </style>
    <![endif]-->
    </head>

    <body>
    <div id="TooltipContainer" onmouseover="holdTooltip();" onmouseout="swapTooltip('default');"></div>
    <div id="serverinfo">
    <a href="main.php?token=e9b7296b5ffe23ee43e50bac43a32 8c5" class="item"> [img]./themes/original/img/s_host.png[/img]
    Server: localhost</a>
    <span class="separator">[img]./themes/original/img/item_ltr.png[/img]</span>
    <a href="db_details_structure.php?db=ecom_db&amp;toke n=e9b7296b5ffe23ee43e50bac43a328c5" class="item"> [img]./themes/original/img/s_db.png[/img]
    Database: ecom_db</a>
    <span class="separator">[img]./themes/original/img/item_ltr.png[/img]</span>
    <a href="tbl_properties_structure.php?db=ecom_db&amp; table=clienti&amp;token=e9b7296b5ffe23ee43e50bac43 a328c5" class="item"> [img]./themes/original/img/s_tbl.png[/img]
    Tabella: clienti</a>
    <span class="table_comment" id="span_table_comment">&quot;Table 'ecom_db.clienti' doesn't exist&quot;</span>
    </div>

    <div class="error"><h1>Errore</h1>


    query SQL:
    [img] ./themes/original/img/b_edit.png[/img] </p>



    <span class="syntax"><span class="syntax_alpha syntax_alpha_reservedWord">SHOW</span> <span class="syntax_alpha syntax_alpha_reservedWord">CREATE</span> <span class="syntax_alpha syntax_alpha_reservedWord">TABLE</span> <span class="syntax_quote syntax_quote_backtick">`ecom_db`</span><span class="syntax_punct syntax_punct_qualifier">.</span><span class="syntax_quote syntax_quote_backtick">`clienti`</span> </span>
    </p>



    Messaggio di MySQL: [img]./themes/original/img/b_help.png[/img]
    </p>
    <code>
    #1146 - Table 'ecom_db.clienti' doesn't exist
    </code>

    </div><fieldset class="tblFooters"> </fieldset>

    <script type="text/javascript" language="javascript">
    //<![CDATA[
    // updates current settings
    if (window.parent.setAll) {
    window.parent.setAll('it-utf-8', 'utf8_general_ci', '1', 'ecom_db', 'clienti');
    }


    // set current db, table and sql query in the querywindow
    if (window.parent.refreshNavigation) {
    window.parent.reload_querywindow(
    'ecom_db',
    'clienti',
    '');
    }


    if (window.parent.frame_content) {
    // reset content frame name, as querywindow needs to set a unique name
    // before submitting form data, and navigation frame needs the original name
    if (window.parent.frame_content.name != 'frame_content') {
    window.parent.frame_content.name = 'frame_content';
    }
    if (window.parent.frame_content.id != 'frame_content') {
    window.parent.frame_content.id = 'frame_content';
    }
    //window.parent.frame_content.setAttribute('name', 'frame_content');
    //window.parent.frame_content.setAttribute('id', 'frame_content');
    }
    //]]>
    </script>
    </body>
    </html>

  9. #9
    quello e' qualsiasi cosa. tranne un file di dump....

    Come lo hai ottenuto questo file?

    prova a leggere le info nella pillola di guidoxx ....

    http://forum.html.it/forum/showthrea...hreadid=831441

    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

  10. #10
    grazie utilissimo questo link me provo + tardi!!ciao

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 © 2025 vBulletin Solutions, Inc. All rights reserved.