1 (изменено: Петька, 2010-08-20 12:18:12)

Тема: при экспорте генерация непонятного кода

Экспортировал БД в файл. Примерно половина нормально экспортировалась. Потом сгенерировался непонятный код (похоже на html + javascript - я пока еще не достаточно хорошо в этом разбираюсь). И остальные таблицы не экспортировались. Загвоздка в том, что я предыдущую базу удалил. Посоветуйте как мне быть
Вот этот текст

<!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="ru" lang="ru" dir="ltr">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="icon" href="./favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
    <title>phpMyAdmin</title>
    <link rel="stylesheet" type="text/css" href="phpmyadmin.css.php?token=711e797c4273d2d4772e1444129ce2b1&js_frame=right&nocache=3722124557" />
    <link rel="stylesheet" type="text/css" href="print.css" media="print" />
    <meta name="robots" content="noindex,nofollow" />
<script type="text/javascript">
try {
    // can't access this if on a different domain
    var topdomain = top.document.domain;
    // double-check just for sure
    if (topdomain != self.document.domain) {
        alert("Redirecting...");
        top.location.replace(self.document.URL.substring(0, self.document.URL.lastIndexOf("/")+1));
    }
}
catch(e) {
    alert("Redirecting... (error: " + e);
    top.location.replace(self.document.URL.substring(0, self.document.URL.lastIndexOf("/")+1));
}
</script>
<script src="./js/tooltip.js" type="text/javascript"></script>
<script type="text/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 = 'phpmyadmin.masterhost.ru / u89105.mysql.masterhost.ru / u89105_cedora / jos_content_frontpage | phpMyAdmin ';
}

var PMA_messages = new Array();
window.parent.addEvent(window, 'load', PMA_TT_init);
// ]]>
</script>
    <meta name="OBGZip" content="true" />
        <!--[if IE 6]>
    <style type="text/css">
    /* <![CDATA[ */
    html {
        overflow-y: scroll;
    }
    /* ]]> */
    </style>
    <![endif]-->
</head>

<body>
    <div id="serverinfo">
<a href="main.php?token=711e797c4273d2d4772e1444129ce2b1" class="item">        <img class="icon" src="./themes/original/img/s_host.png" width="16" height="16" alt="" /> 
Сервер: u89105.mysql.masterhost.ru</a>
        <span class="separator"><img class="icon" src="./themes/original/img/item_ltr.png" width="5" height="9" alt="-" /></span>
<a href="db_structure.php?db=u89105_cedora;token=711e797c4273d2d4772e1444129ce2b1" class="item">        <img class="icon" src="./themes/original/img/s_db.png" width="16" height="16" alt="" /> 
База данных: u89105_cedora</a>
        <span class="separator"><img class="icon" src="./themes/original/img/item_ltr.png" width="5" height="9" alt="-" /></span>
<a href="sql.php?db=u89105_cedora;table=jos_content_frontpage;token=711e797c4273d2d4772e1444129ce2b1" class="item">        <img class="icon" src="./themes/original/img/s_tbl.png" width="16" height="16" alt="" /> 
Таблица : jos_content_frontpage</a>
</div>
<!-- PMA-SQL-ERROR -->
    <div class="error"><h1>Ошибка</h1>
    <p><strong>SQL-запрос:</strong>
<a href="tbl_sql.php??sql_query=SHOW+TABLE+STATUS+FROM+%60u89105_cedora%60+LIKE+%27jos_content_frontpage%27;show_query=1;db=u89105_cedora;table=jos_content_frontpage;token=711e797c4273d2d4772e1444129ce2b1"><img src="./themes/original/img/b_edit.png" title="Изменить" alt="Изменить" class="icon" width="16" height="16" /></a>    </p>
    <p>
        <span class="syntax"><span class="syntax_alpha syntax_alpha_reservedWord">SHOW</span>  <span class="syntax_alpha syntax_alpha_reservedWord">TABLE</span>  <span class="syntax_alpha syntax_alpha_reservedWord">STATUS</span>  <span class="syntax_alpha syntax_alpha_reservedWord">FROM</span>  <span class="syntax_quote syntax_quote_backtick">`u89105_cedora`</span>  <span class="syntax_alpha syntax_alpha_reservedWord">LIKE</span>  <span class="syntax_quote syntax_quote_single">'jos_content_frontpage'</span></span>
    </p>
<p>
    <strong>Ответ MySQL: </strong>
</p>
<code>
#2006 - MySQL server has gone away
</code><br />
</div><script type="text/javascript">
//<![CDATA[
// updates current settings
if (window.parent.setAll) {
    window.parent.setAll('ru-utf-8', 'utf8_general_ci', '1', 'u89105_cedora', 'jos_content_frontpage', '711e797c4273d2d4772e1444129ce2b1');
}
    // set current db, table and sql query in the querywindow
if (window.parent.reload_querywindow) {
    window.parent.reload_querywindow(
        'u89105_cedora',
        'jos_content_frontpage',
        '');
}
    
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 (typeof(window.parent.frame_content.name) != 'undefined'
     && window.parent.frame_content.name != 'frame_content') {
        window.parent.frame_content.name = 'frame_content';
    }
    if (typeof(window.parent.frame_content.id) != 'undefined'
     && 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>

2

Re: при экспорте генерация непонятного кода

Петька
Обратитесь к хостеру, он должен иметь дампы баз данных, хотя бы ежемесячные. С этим кодом ничего сделать нельзя, почему он вывелся - не понятно; вероятно во время создания дампа произошел сбой, или ошибка.