Backup Bazy danych

Konfiguracja PHP-Fusion i eXtreme-Fusion.
bolek
Posty: 8
Rejestracja: 27 lut 2006, 15:24:44
Płeć: Niewybrana
User Agent: Firefox Windows 1024x768

Backup Bazy danych

Post autor: bolek »

Witam.

Jakiś czas temu zainstalowałem takie coś jak php-fusion-6-01-6. Zabawka ta korzysta z bazy MySQL a co za tym idzie musiałem skorzystać z bazy zewnętrznej. Oczywiście wykonałem kopię bazy danych (nie od razu :)) używając kompresji .gz (jedna z 2 opcji). I tu pojawił się problem - jak chcę przywrócić bazę muszę ją rozpakować. Niestety jak chcę to uczynić (pod winshitem i pod Linuxem) wyskakuje błąd informujący mnie o tym, że to nie jest archiwum gz. Miał ktoś taki problem? Jeżeli tak, to jak go rozwiązać i czy to jest związane z CBA.PL czy z bazą danych?

Z góry wielkie dzięki

P.S. Pod wingrozą próbowałem rozpakować to programami: WinRar, TotalComander, IZArc35; pod linuxem standardowego gzipa
Awatar użytkownika
fuma
Przyjaciel CBA
Posty: 11168
Rejestracja: 01 sie 2005, 14:57:56
Lokalizacja: z jajka niespodzianki :P
Płeć: Mężczyzna
User Agent: Firefox Windows 1152x864

Post autor: fuma »

1. zly dzial (przenioslem)
po drugi zaimportuj ten plik do bazy, powinno samo sie rozpakowac
bolek
Posty: 8
Rejestracja: 27 lut 2006, 15:24:44
Płeć: Niewybrana
User Agent: Firefox Windows 1024x768

Post autor: bolek »

Problem polega na tym ze nie moge zaimportowac poprzez php-fusion-6-01-6 - zły format pliku - a ladujac sie bezposrednio na server bazy danych nie odnajudje tam opcji import. Stad zlozonosc tego nieciekawego problemu.
Awatar użytkownika
fuma
Przyjaciel CBA
Posty: 11168
Rejestracja: 01 sie 2005, 14:57:56
Lokalizacja: z jajka niespodzianki :P
Płeć: Mężczyzna
User Agent: Firefox Windows 1152x864

Post autor: fuma »

opcja import jest w zakladce sql
bolek
Posty: 8
Rejestracja: 27 lut 2006, 15:24:44
Płeć: Niewybrana
User Agent: Firefox Windows 1024x768

Post autor: bolek »

Taki komunikat wystepuje kiedy chce importowac baze. Ja nic z tego nie rozumiem :(

Wygląda na to, że w twoim zapytaniu SQL jest błąd. W znalezieniu przyczyny problemu może pomóc także - jeśli się pojawi - poniższy opis błędu serwera MySQL.

ERROR: Nieznany znak przestankowy @ 6
STR: >--><
SQL: <!--]>--><noscript></noscript><script></script>#----------------------------------------------------------
# PHP-Fusion SQL Data Dump
# Database Name: `bazaml`
# Table Prefix: `fusion_`
# Date: `24/02/2007 22:25`
#----------------------------------------------------------

#
# Structure for Table `fusion_admin`
#
DROP TABLE IF EXISTS `fusion_admin`

zapytanie SQL:

#---------------------------------------------------------- # PHP-Fusion SQL Data Dump # Database Name: `bazaml` # Table Prefix: `fusion_` # Date: `24/02/2007 22:25` #---------------------------------------------------------- # # Structure for Table `fusion_admin` # DROP TABLE IF EXISTS `fusion_admin`

MySQL zwrócił komunikat: Dokumentacja
#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 '<!--]>--><noscript></noscript><script type="text/javascript" src="h' at line 1
Awatar użytkownika
fuma
Przyjaciel CBA
Posty: 11168
Rejestracja: 01 sie 2005, 14:57:56
Lokalizacja: z jajka niespodzianki :P
Płeć: Mężczyzna
User Agent: Firefox Windows 1152x864

Post autor: fuma »

i wszystko jasne ;) Podczas tworzenia backupa (pewnie z poziomu panelu administracyjnego php-fusion) doklail sie kod reklamy. Sprobuj otworzyc plik w notatniku i wykasowac kod reklamy
bolek
Posty: 8
Rejestracja: 27 lut 2006, 15:24:44
Płeć: Niewybrana
User Agent: Firefox Windows 1024x768

Post autor: bolek »

Super :) problem z niewalsciwym formatem (chyba) rozwiazany. Teraz pojawia sie takie cos:
Warning: fread() [function.fread]: Length parameter must be greater than 0. in /home/freemys/public_html/sql06/libraries/read_dump.lib.php on line 162

Warning: Cannot modify header information - headers already sent by (output started at /home/freemys/public_html/sql06/libraries/read_dump.lib.php:162) in /home/freemys/public_html/sql06/main.php on line 15

Warning: Cannot modify header information - headers already sent by (output started at /home/freemys/public_html/sql06/libraries/read_dump.lib.php:162) in /home/freemys/public_html/sql06/main.php on line 17

Warning: Cannot modify header information - headers already sent by (output started at /home/freemys/public_html/sql06/libraries/read_dump.lib.php:162) in /home/freemys/public_html/sql06/libraries/ob.lib.php on line 61

Warning: Cannot modify header information - headers already sent by (output started at /home/freemys/public_html/sql06/libraries/read_dump.lib.php:162) in /home/freemys/public_html/sql06/libraries/header_http.inc.php on line 14

Warning: Cannot modify header information - headers already sent by (output started at /home/freemys/public_html/sql06/libraries/read_dump.lib.php:162) in /home/freemys/public_html/sql06/libraries/header_http.inc.php on line 15

Warning: Cannot modify header information - headers already sent by (output started at /home/freemys/public_html/sql06/libraries/read_dump.lib.php:162) in /home/freemys/public_html/sql06/libraries/header_http.inc.php on line 16

Warning: Cannot modify header information - headers already sent by (output started at /home/freemys/public_html/sql06/libraries/read_dump.lib.php:162) in /home/freemys/public_html/sql06/libraries/header_http.inc.php on line 17

Warning: Cannot modify header information - headers already sent by (output started at /home/freemys/public_html/sql06/libraries/read_dump.lib.php:162) in /home/freemys/public_html/sql06/libraries/header_http.inc.php on line 20
Czy to swiadczy o tym, ze nie mozna zastapic istniejacej juz bazy (stara trzeba najpierw usunac) czy o czyms innym?
ODPOWIEDZ