[Gelöst] Unter XAMPP 1.7.3 kein Backup möglich

Irgendwelche Probleme mit XAMPP für Linux? Dann ist hier genau der richtige Ort um nachzufragen.

[Gelöst] Unter XAMPP 1.7.3 kein Backup möglich

Postby lausbouwen » 27. December 2009 11:56

Hallo

Nachdem ich ein Upgrade von 1.7.2. nach 1.7.3. erfolgreich durchgeführt hatte,

Code: Select all
stacker:/home/roby/Desktop # xampp-upgrade/start
Stopping XAMPP for Linux 1.7.2...               
XAMPP: Stopping Apache with SSL...             
XAMPP: Stopping MySQL...                       
XAMPP stopped.                                 

Upgrading 1.7.2 to 1.7.3...
Installing new files...   
Upgrading existing files...

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Please call '/opt/lampp/bin/mysql_upgrade -p' to update MySQL databases to the new MySQL version.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Successfully upgraded XAMPP.

Starting XAMPP for Linux 1.7.3...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...                     
XAMPP for Linux started.                     
stacker:/home/roby/Desktop # /opt/lampp/bin/mysql_upgrade -p
Enter password:                                             
Looking for 'mysql' as: /opt/lampp/bin/mysql               
Looking for 'mysqlcheck' as: /opt/lampp/bin/mysqlcheck     
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/opt/lampp/var/mysql/mysql.sock'
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/opt/lampp/var/mysql/mysql.sock'
anneelo.addons                                     OK                                                   
anneelo.groups                                     OK                                                   
anneelo.mod_captcha_control                        OK                                                   
anneelo.mod_code                                   OK                                                   
anneelo.mod_form_fields                            OK                                                   
anneelo.mod_form_settings                          OK                                                   
anneelo.mod_form_submissions                       OK
u.s.w.


bemerkte ich jedoch beim anschliessenden Backup ein grösseres Problem.

Code: Select all
stacker:/ # /opt/lampp/lampp backup passwort
Backing up databases...
information_schema: FAILED
stacker:/ #


Das ganze läuft auf einem Server mit openSUSE 11.2 32bit und einem mit openSUSE 11.2 64bit.
Jedesmal ist das Problem reproduzierbar.

Auch nachdem ich XAMPP vollständig gelöscht und neu installiert hatte blieb das Problem weiterhin bestehen.
Somit musste ich wieder die 1.7.2. Version installieren, denn ohne Backup fühle ich mich total nackt :lol:

Sollte jemand das gleiche Problem haben mit einer paraten Lösung bitte melden.


Viele Grüsse

lausbouwen
Last edited by lausbouwen on 07. January 2010 18:44, edited 1 time in total.
User avatar
lausbouwen
 
Posts: 10
Joined: 27. December 2009 11:21
Location: Luxemburg

Re: Unter XAMPP 1.7.3 kein Backup möglich

Postby noxx000 » 27. December 2009 14:45

hallo,

selbiges problem auf debian 4.0 64bit, Upgrade wie bei meinem Vorposter ohne Fehler und komplett erfolgreich.
Wäre schön wenn jemand eine lösung hätte :)

Grüße, Noxx
noxx000
 
Posts: 5
Joined: 03. November 2008 15:37

Re: Unter XAMPP 1.7.3 kein Backup möglich

Postby google90 » 28. December 2009 10:07

Habe das selbe Problem....hoffentlich gibt es bald eine Lösung
google90
 
Posts: 7
Joined: 28. December 2009 10:05

Re: Unter XAMPP 1.7.3 kein Backup möglich

Postby google90 » 02. January 2010 00:49

Gibt es schon eine Lösung. Wichtig
google90
 
Posts: 7
Joined: 28. December 2009 10:05

Re: Unter XAMPP 1.7.3 kein Backup möglich

Postby Janis Indans » 05. January 2010 15:23

Sorry folks for my English!

I guess how to fix backup problem!

Lets exclude information_schema!!!


in the directory /opt/lampp/share/lampp

edit file backup

under

Code: Select all

backupdir="/opt/lampp/backup"

Add new variable

EXCLUDE="information_schema"

 

edit line 27: looks like this

d=`echo "show databases" | /opt/lampp/bin/mysql -uroot $passwd 2>/dev/null`

My option is

d=`echo "show databases" | /opt/lampp/bin/mysql -uroot $passwd | grep -v ${EXCLUDE} | tr "\n" " "`

bzr commit -m "bugs bugs"
Janis Indans
 
Posts: 2
Joined: 05. January 2010 15:10

Re: Unter XAMPP 1.7.3 kein Backup möglich

Postby lausbouwen » 05. January 2010 18:00

Hallo Janis Indans

I insert your code like this

Code: Select all
#!/bin/bash
# BITUP v0.1
# Copyright 2003 by Kai 'Oswald' Seidler, oswald@apachefriends.org, GPL-licensed

. /opt/lampp/share/lampp/lampplib

backupdir="/opt/lampp/backup"

if test -d $backupdir
then
   :
else
   mkdir $backupdir
   chown root.root $backupdir
   chmod 700 $backupdir
fi

cd $backupdir || (echo "Is XAMPP installed?"; exit)

if test "$1" != ""
then
   passwd="-p$1"
else
   passwd=""
fi

#d=`echo "show databases" | /opt/lampp/bin/mysql -uroot $passwd 2>/dev/null`
d=`echo "show databases" | /opt/lampp/bin/mysql -uroot $passwd | grep -v ${EXCLUDE} | tr "\n" " "`
if test -z "$d"
then
   echo "Can't access database. Is MySQL running? Added the MySQL root password to end of command line?"
   exit
fi

EXCLUDE="information_schema"

echo "Backing up databases..."
for i in $d
do
   if test "$i" = "Database"
   then
      continue
   fi   
   /opt/lampp/bin/mysqldump -a -Q -B -e --add-drop-table -uroot $passwd $i > $i.sql 2> output
   if test $? -eq 0
   then
      :
   else
      echo "$i: FAILED"
      exit
   fi
done

cp /opt/lampp/lib/VERSION VERSION
echo "Backing up configuration, log and htdocs files..."
tar cfz data.tar.gz /opt/lampp/etc /opt/lampp/htdocs /opt/lampp/logs /opt/lampp/phpmyadmin/config.inc.php 2>> output

echo "Calculating checksums..."
md5sum data.tar.gz VERSION *.sql > md5sums

echo "Building final backup file..."
tar cfz backup.tar.gz data.tar.gz VERSION *.sql md5sums
cat /opt/lampp/share/lampp/backup.head /opt/lampp/backup/backup.tar.gz > $backupdir/xampp-backup-`date +%d-%m-%y`.sh
rm VERSION data.tar.gz *.sql backup.tar.gz md5sums output
echo "Backup finished."
echo "Take care of $backupdir/xampp-backup-`date +%d-%m-%y`.sh"


But it dont work really :(


Code: Select all
stacker:~ # /opt/lampp/lampp backup password
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
Can't access database. Is MySQL running? Added the MySQL root password to end of command line?


What can it be?



Thanks

lausbouwen
User avatar
lausbouwen
 
Posts: 10
Joined: 27. December 2009 11:21
Location: Luxemburg

Re: Unter XAMPP 1.7.3 kein Backup möglich

Postby google90 » 06. January 2010 02:33

Have the same Problem.
google90
 
Posts: 7
Joined: 28. December 2009 10:05

Re: Unter XAMPP 1.7.3 kein Backup möglich

Postby Janis Indans » 06. January 2010 07:58

Do you see the difference?
Line 8, Line 28-29, Line 66
Code: Select all
#!/bin/bash
# BITUP v0.1
# Copyright 2003 by Kai 'Oswald' Seidler, oswald@apachefriends.org, GPL-licensed

. /opt/lampp/share/lampp/lampplib

backupdir="/opt/lampp/backup"
EXCLUDE="information_schema"

if test -d $backupdir
then
   :
else
   mkdir $backupdir
   chown root.root $backupdir
   chmod 700 $backupdir
fi

cd $backupdir || (echo "Is XAMPP installed?"; exit)

if test "$1" != ""
then
   passwd="-p$1"
else
   passwd=""
fi

#d=`echo "show databases" | /opt/lampp/bin/mysql -uroot $passwd 2>/dev/null`
d=`echo "show databases" | /opt/lampp/bin/mysql -uroot $passwd | grep -v ${EXCLUDE} | tr "\n" " "`
#2>/dev/null`


if test -z "$d"
then
   echo "Can't access database. Is MySQL running? Added the MySQL root password to end of command line?"
   exit
fi

echo "Backing up databases..."
for i in $d
do
   if test "$i" = "Database"
   then
      continue
   fi   
   /opt/lampp/bin/mysqldump -a -Q -B -e --add-drop-table -uroot $passwd $i > $i.sql 2> output
   if test $? -eq 0
   then
      :
   else
      echo "$i: FAILED"
      exit
   fi
done

cp /opt/lampp/lib/VERSION VERSION
echo "Backing up configuration, log and htdocs files..."
tar cfz data.tar.gz /opt/lampp/etc /opt/lampp/htdocs /opt/lampp/logs /opt/lampp/phpmyadmin/config.inc.php 2>> output

echo "Calculating checksums..."
md5sum data.tar.gz VERSION *.sql > md5sums

echo "Building final backup file..."
tar cfz backup.tar.gz data.tar.gz VERSION *.sql md5sums
cat /opt/lampp/share/lampp/backup.head /opt/lampp/backup/backup.tar.gz > $backupdir/xampp-backup-`date +%d-%m-%y`.sh
chmod +u=x $backupdir/xampp-backup-`date +%d-%m-%y`.sh
rm VERSION data.tar.gz *.sql backup.tar.gz md5sums output
echo "Backup finished."
echo "Take care of $backupdir/xampp-backup-`date +%d-%m-%y`.sh"
bzr commit -m "bugs bugs"
Janis Indans
 
Posts: 2
Joined: 05. January 2010 15:10

Re: Unter XAMPP 1.7.3 kein Backup möglich

Postby google90 » 06. January 2010 13:23

IT WORKS!!!!!!!!!!!!!


Thank you very much Janis Indans
google90
 
Posts: 7
Joined: 28. December 2009 10:05

Re: Unter XAMPP 1.7.3 kein Backup möglich

Postby lausbouwen » 06. January 2010 18:50

Hello Janis

So far so good, but when i restore the backupfile it make me this error:

Code: Select all
stacker:/opt/lampp/backup # sh xampp-backup-06-01-10.sh password
Checking integrity of files...
Restoring configuration, log and htdocs files...
Checking versions...
Installed:   XAMPP 1.7.3
Backup from: XAMPP 1.7.3
Restoring MySQL databases...
information_schema FAILED: ERROR 1044 (42000) at line 22: Access denied for user 'root'@'localhost' to database 'information_schema'
Restoring MySQL user databases...
Backup complete. Have fun!
You may need to restart XAMPP to complete the restore.


The restore of the backup is successful and it works (homepages), but there is still a error 1044.
I think it is ok, because of the

Code: Select all
EXCLUDE="information_schema"


One thing i dont understand, is the database 'information_schema' not important for the entire backup of the database?

For the moment i say thank you for your work Janis.


lausbouwen
User avatar
lausbouwen
 
Posts: 10
Joined: 27. December 2009 11:21
Location: Luxemburg

Re: Unter XAMPP 1.7.3 kein Backup möglich

Postby Oswald » 07. January 2010 16:50

Sorry an Alle! Dieser Thread ist im Weihnachts/Neujahrs-Trubel ganz an mir vorbei gegangen. Der oben vorgeschlagene Fix von Janis (thanks a million btw!!) ist wunderbar.

lausbouwen,:

'information_schema' ist keine echte Datenbank und sondern nur eine standardisierte virtuelle Datenbank mit Informationen über den MySQL Server. Eine Meta-Datanbank sozusagen. Daher braucht man davon kein Backup und muss es ebenso wenig wieder einspielen.

Beim Zurückspielen des Backups sollte es eigentlich keine Probleme geben: Da information_schema nicht im Backup ist, sollte er es auch nicht zurückspielen wollen. Hast Du vielleicht ein altes Backup genommen, in dem information_schema noch enthalten war?

Liebe Grüße
Oswald

PS: Noch diese Woche werde ich ein korrigiertes 1.7.3a veröffentlichen.
User avatar
Oswald
Apache Friends
 
Posts: 2718
Joined: 26. December 2002 19:51
Location: Berlin, Germany
Operating System: Linux

Re: Unter XAMPP 1.7.3 kein Backup möglich

Postby lausbouwen » 07. January 2010 18:04

Hallo Oswald

Beim Zurückspielen des Backups sollte es eigentlich keine Probleme geben: Da information_schema nicht im Backup ist, sollte er es auch nicht zurückspielen wollen. Hast Du vielleicht ein altes Backup genommen, in dem information_schema noch enthalten war?


Keineswegs, ich konnte ja erst mit Hilfe von Janis Code überhaupt ein neues Backup erstellen. Somit dürfte diese information_schema Datenbank erst gar nicht erstellt worden sein.

Möchte mich aber an dieser Stelle nochmal für die schnelle Hilfe in diesem Forum bedanken.
Warte mal die neue Version 1.7.3a ab und teste sie anschließend.


Schöne Grüße aus Luxemburg

lausbouwen
User avatar
lausbouwen
 
Posts: 10
Joined: 27. December 2009 11:21
Location: Luxemburg

Re: Unter XAMPP 1.7.3 kein Backup möglich

Postby Oswald » 07. January 2010 18:18

Hallo Luxemburg! ;)

lausbouwen wrote:
Beim Zurückspielen des Backups sollte es eigentlich keine Probleme geben: Da information_schema nicht im Backup ist, sollte er es auch nicht zurückspielen wollen. Hast Du vielleicht ein altes Backup genommen, in dem information_schema noch enthalten war?


Keineswegs, ich konnte ja erst mit Hilfe von Janis Code überhaupt ein neues Backup erstellen. Somit dürfte diese information_schema Datenbank erst gar nicht erstellt worden sein.


Mist, das wäre schön gewesen. Aber ich hab da auch schon eine Vermutung.

lausbouwen wrote:Warte mal die neue Version 1.7.3a ab und teste sie anschließend.


Kannst Du http://www.apachefriends.org/files/linux/1.7.3/backup mal ausprobieren? Einfach /opt/lampp/share/lampp/backup damit ersetzen. Das wäre großartig. Eigentlich hat sich nur eine Zeile geändert.

Liebe Grüße
Oswald
User avatar
Oswald
Apache Friends
 
Posts: 2718
Joined: 26. December 2002 19:51
Location: Berlin, Germany
Operating System: Linux

Re: Unter XAMPP 1.7.3 kein Backup möglich

Postby lausbouwen » 07. January 2010 18:41

Hallo Oswald

Wenn der Chef sich selbst drum kümmert.

Code: Select all
stacker:/opt/lampp/backup # sh xampp-backup-07-01-10.sh password
Checking integrity of files...
Restoring configuration, log and htdocs files...
Checking versions...
Installed:   XAMPP 1.7.3
Backup from: XAMPP 1.7.3
Restoring MySQL databases...
Restoring MySQL user databases...
Backup complete. Have fun!
You may need to restart XAMPP to complete the restore.


Grünes Licht Oswald, so kannst Du es online stellen. :D


Bis dann und schöne Grüße

lausbouwen
User avatar
lausbouwen
 
Posts: 10
Joined: 27. December 2009 11:21
Location: Luxemburg


Return to XAMPP für Linux

Who is online

Users browsing this forum: No registered users and 58 guests