XAMPP messed up due to deleting something I shouldn't have

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

XAMPP messed up due to deleting something I shouldn't have

Postby tryin_to_learn » 28. March 2011 14:33

I was cleaning up my hard drive yesterday and obviously deleted/uninstalled something that caused my whole XAMPP system to no longer work. I can't even get to the localhost menu to save my databases with phpMyAdmin and can't bring up any of my sites in htdocs. Entering http://127.0.0.1/ gets a page not found. I suspect what I did was - I thought I had an older version of Perl on my machine so I uninstalled perl, thinking it was that older version. However, when I go to my C drive, I still see both a perl folder and a perl5 folder that appear to have all the files in them. I also still have a perl folder in my xampp folder so I don't honestly know what I uninstalled.

Any suggestions about what to do? The version I'm running (or used to be running) is 1.6.8. I assume I would be able to uninstall and reinstall but the problem with that is that I don't know how to save my sql data. I've got the mysql > data folder with a folder for each of my databases but will those do me any good if I don't download the same version? I do have my htdocs data saved. Help?
tryin_to_learn
 
Posts: 54
Joined: 18. January 2007 16:04

Re: XAMPP messed up due to deleting something I shouldn't ha

Postby WilliL » 28. March 2011 16:55

have a look to: (installation folder: c:/xampp)
c:/xampp/htdocs - all your webpages should be there
c:/xampp/mysql/data - all you databases are there in seperate folders

Make a backup of your data, uninstall xampp, install a new xampp and copy back your data.
Willi
WilliL
 
Posts: 660
Joined: 08. January 2010 10:54
Operating System: Win7Home Prem 64 SP1

Re: XAMPP messed up due to deleting something I shouldn't ha

Postby tryin_to_learn » 28. March 2011 19:45

WilliL wrote:have a look to: (installation folder: c:/xampp)
c:/xampp/htdocs - all your webpages should be there
c:/xampp/mysql/data - all you databases are there in seperate folders

Make a backup of your data, uninstall xampp, install a new xampp and copy back your data.


So if I move the DB folders from mysql/data to the new version's mysql/data, that will automatically install the databases? I thought I read somewhere that that would only work if you were using the same version.
tryin_to_learn
 
Posts: 54
Joined: 18. January 2007 16:04

Re: XAMPP messed up due to deleting something I shouldn't ha

Postby WilliL » 28. March 2011 20:54

no, it must be the same xampp version because mysql versions could be different
Willi
WilliL
 
Posts: 660
Joined: 08. January 2010 10:54
Operating System: Win7Home Prem 64 SP1

Re: XAMPP messed up due to deleting something I shouldn't ha

Postby tryin_to_learn » 28. March 2011 21:48

WilliL wrote:no, it must be the same xampp version because mysql versions could be different


How do I download an older version? My version of XAMPP is 1.6.8
tryin_to_learn
 
Posts: 54
Joined: 18. January 2007 16:04

Re: XAMPP messed up due to deleting something I shouldn't ha

Postby Altrea » 28. March 2011 22:36

You can get every released stable versions of XAMPP @sourceforge

btw: copy the XAMPP data folder works in many more cases then the exact same versions. And in some more cases MySQL has some functions to analyse and repair the data to make them run.
And if copy the data folder don't works, you can export your databases and import them back again to the new version.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: XAMPP messed up due to deleting something I shouldn't ha

Postby tryin_to_learn » 30. March 2011 11:11

This worked great. I did make backups of htdocs and mysql/data but when I was uninstalling, I checked the boxes to keep those two folders and it worked like a charm. I was glad I had the backups just in case but I'm up and running again.

Thanks for the help.
tryin_to_learn
 
Posts: 54
Joined: 18. January 2007 16:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 118 guests