1

I am using MAMP and tried to upgrade it to new version,

I took backup of the db and all files from htdocs folder (Copy pasted them as backup before uninstalling)

enter image description here

enter image description here

I installed new upgraded version of mamp 4 On copying the mysql folder back, the mysql server was not starting.

After googling, I uninstalled it again and changed the previous version of mamp 3.5, On restoring the db, the mamp runs however no backup data table is showing the schema and data.

5
  • 1
    next time you want to make a backup use mysqldump instead of copying folders!
    – lloiacono
    May 15, 2017 at 15:56
  • So all gone or anything can be still done ?
    – Mr X
    May 15, 2017 at 15:58
  • Not sure, I never had to recover from a situation like this. Can you please show the files within your folders, so I have an idea what you have there
    – lloiacono
    May 15, 2017 at 16:03
  • update the ques, it has frm files
    – Mr X
    May 15, 2017 at 16:07
  • The best course of action is to install the previous version, put the folders back and create a backup with mysqldump as @lloiacono mentioned. And it may be possible that it won't work. May 15, 2017 at 16:11

1 Answer 1

1

You can try mysqlfrm to recover your backup.

The mysqlfrm utility is designed as a recovery tool that reads .frm files and produces equivalent CREATE statements from the table definition data found in the file. In most cases, the generated CREATE statement is usable for recreating the table on another server, or for extended diagnostics.

mysqlfrm --diagnostic mysql/db_name/ > db_name.sql

Then is just a matter of importing the .sql file

If you are using windows, the mysqlfrm Utilities is not installed by default if you are using WAMP/XAMPP. So you need to install manually by downloading it from HERE.

For more details on how to proceed check this step by step tutorial.

2
  • Thanks !! I am able to recover schema, however any way to restore data as well. Its not showing any data.
    – Mr X
    May 16, 2017 at 5:56
  • Since I never did this I am not sure, but check this stackoverflow.com/questions/879176/…
    – lloiacono
    May 16, 2017 at 6:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.