<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум PHP-MyAdmin.RU &mdash; проблема с восстановлением бд]]></title>
	<link rel="self" href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=4086&amp;type=atom" />
	<updated>2015-06-23T06:38:41Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.php-myadmin.ru/viewtopic.php?id=4086</id>
		<entry>
			<title type="html"><![CDATA[Re: проблема с восстановлением бд]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=26444#p26444" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Azazello77 сказал:</cite><blockquote><p>админ панель opencart<br />причем чужие базы восстаналивает нормально, а свои же - не хочет</p></blockquote></div><p>Попробуйте обратиться к пользователям этой панели. Затрудняюсь помочь.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2015-06-23T06:38:41Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=26444#p26444</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: проблема с восстановлением бд]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=26443#p26443" />
			<content type="html"><![CDATA[<p>админ панель opencart<br />причем чужие базы восстаналивает нормально, а свои же - не хочет</p>]]></content>
			<author>
				<name><![CDATA[Azazello77]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=7149</uri>
			</author>
			<updated>2015-06-22T21:04:08Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=26443#p26443</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: проблема с восстановлением бд]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=26442#p26442" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Azazello77 сказал:</cite><blockquote><p>на самом деле я просто выложил файл, на который указывает ошибка..</p></blockquote></div><p>Какие действия приводят к этой ошибке? Каким образом вы восстанавливаете БД?</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2015-06-22T20:55:14Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=26442#p26442</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: проблема с восстановлением бд]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=26441#p26441" />
			<content type="html"><![CDATA[<p>на самом деле я просто выложил файл, на который указывает ошибка..</p>]]></content>
			<author>
				<name><![CDATA[Azazello77]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=7149</uri>
			</author>
			<updated>2015-06-22T20:19:47Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=26441#p26441</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: проблема с восстановлением бд]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=26440#p26440" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Azazello77 сказал:</cite><blockquote><p>нужно выложить саму бд?</p></blockquote></div><p>Вы загружаете в базу данных PHP скрипт, что не имеет смысла.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2015-06-22T18:33:17Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=26440#p26440</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: проблема с восстановлением бд]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=26439#p26439" />
			<content type="html"><![CDATA[<p>нужно выложить саму бд?</p>]]></content>
			<author>
				<name><![CDATA[Azazello77]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=7149</uri>
			</author>
			<updated>2015-06-22T16:28:52Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=26439#p26439</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: проблема с восстановлением бд]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=26438#p26438" />
			<content type="html"><![CDATA[<p>Это PHP скрипт, а не база данных. БД обычно в файле с расширением .sql.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2015-06-22T06:06:53Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=26438#p26438</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[проблема с восстановлением бд]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=26437#p26437" />
			<content type="html"><![CDATA[<p>Notice: Error: 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 &#039;‹&#039; at line 1<br />Error No: 1064<br />‹ in /home/u236655852/public_html/system/database/mysql.php on line 50</p><p>вот сам файл..<br /></p><div class="codebox"><pre><code>&lt;?php
final class MySQL {
    private $link;
    
    public function __construct($hostname, $username, $password, $database) {
        if (!$this-&gt;link = mysql_connect($hostname, $username, $password)) {
              trigger_error(&#039;Error: Could not make a database link using &#039; . $username . &#039;@&#039; . $hostname);
        }

        if (!mysql_select_db($database, $this-&gt;link)) {
              trigger_error(&#039;Error: Could not connect to database &#039; . $database);
        }
        
        mysql_query(&quot;SET NAMES &#039;utf8&#039;&quot;, $this-&gt;link);
        mysql_query(&quot;SET CHARACTER SET utf8&quot;, $this-&gt;link);
        mysql_query(&quot;SET CHARACTER_SET_CONNECTION=utf8&quot;, $this-&gt;link);
        mysql_query(&quot;SET SQL_MODE = &#039;&#039;&quot;, $this-&gt;link);
      }
        
      public function query($sql) {
        if ($this-&gt;link) {
            $resource = mysql_query($sql, $this-&gt;link);
    
            if ($resource) {
                if (is_resource($resource)) {
                    $i = 0;
            
                    $data = array();
            
                    while ($result = mysql_fetch_assoc($resource)) {
                        $data[$i] = $result;
            
                        $i++;
                    }
                    
                    mysql_free_result($resource);
                    
                    $query = new stdClass();
                    $query-&gt;row = isset($data[0]) ? $data[0] : array();
                    $query-&gt;rows = $data;
                    $query-&gt;num_rows = $i;
                    
                    unset($data);
                    
                    return $query;    
                } else {
                    return true;
                }
            }
            else {
                trigger_error(&#039;Error: &#039; . mysql_error($this-&gt;link) . &#039;&lt;br /&gt;Error No: &#039; . mysql_errno($this-&gt;link) . &#039;&lt;br /&gt;&#039; . $sql);
                exit();
            }
        }
      }
    
    public function escape($value) {
        if ($this-&gt;link) {
            return mysql_real_escape_string($value, $this-&gt;link);
        }
    }
    
      public function countAffected() {
        if ($this-&gt;link) {
            return mysql_affected_rows($this-&gt;link);
        }
      }

      public function getLastId() {
        if ($this-&gt;link) {
            return mysql_insert_id($this-&gt;link);
        }
      }    
    
    public function __destruct() {
        if ($this-&gt;link) {
            mysql_close($this-&gt;link);
        }
    }
}
?&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Azazello77]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=7149</uri>
			</author>
			<updated>2015-06-21T21:59:24Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=26437#p26437</id>
		</entry>
</feed>
