• Hello guys,

    I had some sites hosted on my localhost. Today I was having problems with the mysql so, I decided to uninstall and install again xampp. I made a backup of all the files on htdocs, with all the sites but now I don’t know what to do to host again that sites on the localhost.
    Someone can help me with this?

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Well, WordPress on your localhost needs xampp to work. Just having the files alone will not work. Did you also take a backup of your mysql database?

    The mysql databases are crucial to your websites. Uninstalling xampp probably did not delete them, but they may need to be configured again so that the newly installed mysql can use them.

    Which platform are you using ? Windows / Mac / Linux ?

    Thread Starter laudes90

    (@laudes90)

    Hello, I really appreciate your replies.
    Unfortunately I did not take a backup of the mysql database.

    I use xampp on Mac OS.
    In case the previous mysql databases were not deleted… how can I get them back?

    Thanks a lot

    I am not sure what you would do to have mysql pick up your earlier database files.
    I googled “mysql database location mac”

    at: “https://stackoverflow.com/questions/7459103/mysql-data-directory-location”

    They say:

    See if you have a file /etc/my.cnf.
    If so, it should tell you where the data directory is.
    For example:
    
    [mysqld]
    set-variable=local-infile=0
    datadir=/var/lib/mysql
    socket=/var/lib/mysql/mysql.sock
    user=mysql
    ...
    
    My guess is that your mysql might be installed to /usr/local/mysql-XXX.
    
    This link might be useful:
    
    https://dev.mysql.com/doc/refman/5.0/en/macosx-installation.html

    Hallo.

    I have the same problem. I uninstalled XAMPP but I didn’t know I had to make a backup of the database. I only kept the copy of the htdocs folder.
    Is there a way to restore/recover the database or, in general, to recover my site?
    I’m using Windows 10 x64
    Thanks,

    Stefano

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘xampp unnistalled , sites lost?’ is closed to new replies.