0

I'm using phpmyadmin to export one of my database. And it was huge ( larger than 1 GiB ) And export procedure ended because of the PHP had run 360 seconds ( maxmium execution time ) and was killed while I thought that the backup file was correct and complete.

Later, I want a rollback. I drop the old database. And I import the backup sql file.

And

My data are partially lost.

Why phpmyadmin doesn't notice me??? I'm really ******* angry.

march1993
  • 133
  • 1
  • 7

1 Answers1

0

For databases huge like that phpMyAdmin is not the best solution. Better use shell command to dump/import database. Under linux (most likely you are on linux)

mysqldump -u username -p database_name > dump_file_name.sql

Copy it, i.e. with FTP to other server and then import like:

mysql -u username -p  database_name < dump_file_name.sql

After "-p" you can immediately put your password, but you can also skip it and you'll be asked to enter it.

MilanG
  • 6,994
  • 2
  • 35
  • 64
  • I know that. I swear I'll not use phpMyAdmin to backup huge databased any more. At least it should tell me that procedure is not finished! – march1993 Feb 28 '15 at 05:22