Using the integrated XAMPP backup system

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Using the integrated XAMPP backup system

Postby Nick Taylor » 27. January 2004 14:31

Hello,
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?

Thanks

Long lives XAMPP! :D
Nick Taylor
 
Posts: 36
Joined: 27. January 2004 14:22
Location: Oxford

Postby MinJun » 28. January 2004 05:54

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 :?:

Edit:
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:

/opt/lampp/share/lampp/backup

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!!!

Greetings
Oswald


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

Here is the link to the post to read through:
http://community.apachefriends.org/f/viewtopic.php?t=4063
Pampa: Grast du noch oder ziehst du um?!?
User avatar
MinJun
 
Posts: 29
Joined: 08. December 2003 08:06
Location: grazing in the pampa ;-)

Postby MinJun » 28. January 2004 17:01

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`

Save.
[...]


Now it works :D
Pampa: Grast du noch oder ziehst du um?!?
User avatar
MinJun
 
Posts: 29
Joined: 08. December 2003 08:06
Location: grazing in the pampa ;-)

Postby Oswald » 28. January 2004 17:44

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.

Greetings
Oswald
User avatar
Oswald
Apache Friends
 
Posts: 2718
Joined: 26. December 2002 19:51
Location: Berlin, Germany
XAMPP Version: 5.5.19
Operating System: Linux

Postby MinJun » 28. January 2004 19:37

Puuuuuh, my honor is kept :D

minjun
Pampa: Grast du noch oder ziehst du um?!?
User avatar
MinJun
 
Posts: 29
Joined: 08. December 2003 08:06
Location: grazing in the pampa ;-)


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 4 guests