I did a mysql import using the files on xampp. I have very many databases so I did not want to go through the mysqldump route. The process was:
- Install the new xampp, but do not enable the services
- Update my.ini to include any custom settings I had on the previous install.
- Confirm that mysql is starting successfully
- Copy over all the database folders (inside the data folder) from the old install with the exception of mysql, phpmyadmin and webauth.
- Confirm that mysql is starting successfully
- Copy over ib_logfile0, ib_logfile1 and ibdata1. Rename the files first, do not overwrite just in case something goes wrong.
- Confirm that mysql is starting successfully
- Copy over the following files from the data/mysql folder: db.frm, db.MYD, db.MYI, user.frm, user.MYD, user.MYI. Do not overwrite the new ones just in case it doesn't work.
- Confirm that mysql is starting successfully
At the end of the process I had mysql working perfectly with all my databases and users intact.