Page 1 of 1

Using the integrated XAMPP backup system

PostPosted: 27. January 2004 14:31
by Nick Taylor
I have tried to use the backup system in XAMPP (/opt/lampp/lampp backup) but it doesnt work. It says:
"Can't access database. Is MYSQL running? Added the MySQL root password to end of command line?"

MySQL is running and set up. What is the correct way/correct command line to use for lampp backup, please?


Long lives XAMPP! :D

PostPosted: 28. January 2004 05:54
by MinJun
I have the same problem. :cry:
Maybe this "bug" (?) will be fixed soon since backup is still a beta.
I should mention that there is only one MSQL running on my system.
Maybe someone has a solution to fix this error :?:

Oh I found something Kai wrote in another post. I'm a stupid one. I should have read the whole new posts before writing something :oops:
Kai Seidler wrote:Hmm... _ (underscores) are no problem.

Ahhh... stupid me!!!!

You found a bug! ;)

Again... please take your favourite editor and edit /opt/lampp/lampp.

At line 400 you find:


Please add a space and $2 to the end of this line. Like this:

/opt/lampp/share/lampp/backup $2

And now try again. Now it should work perfectly. :)

Repute, thanks for "finding" this bug!!!


Have to test this maybe the problem will be fixed then.

Here is the link to the post to read through:

PostPosted: 28. January 2004 17:01
by MinJun
Thanks Nick for the tipp :wink:

I forgot to mention that Kai wrote in the thread 'bout another fix to do.
(oh -again- shame on me :oops: )

Kai Seidler wrote: [...]
Now could you please edit /opt/lampp/share/lampp/backup?

At line 27 you find:

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

Please remove the 2>/dev/null. It should look like:

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


Now it works :D

PostPosted: 28. January 2004 17:44
by Oswald
No no no! No shame! ;)

The last change posted by MinJun is not necessary! It was only a change to make debugging possible and find the real bug.


PostPosted: 28. January 2004 19:37
by MinJun
Puuuuuh, my honor is kept :D