I have a VPS machine and I installed phpMyAdmin and inserted the database in. But now when I want to make a backup and export the database, it says:
Here is the error.log: http://pastebin.com/44N4YcAk
[Tue Jun 18 21:40:16 2013] [error] [client] PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 491520 bytes) in /usr/share/phpmyadmin/libraries/tcpdf/tcpdf.php
you should not be using phpmyadmin for this, you should be using mysqldump. from the command line its
from a php script
this is easy to automate with a cronjob
It says at the bottom
Either your VPS is out of memory or your PHP settings are not allowing more than 16MB of memory to be allocated.
Increase the memory in php.ini or just use mysqldump
php.ini change
I strongly recomend using mysqldump though here is an extract from my backup script
That saves the backup in a 7zip file protected by the password
7zpass
Go through this post, it shows how to increase the memory; or just use command line to import:
How to increase memory size for phpmyadmin
Tip:
Change the mysql engine to InnoDB instead of MyISAM, the main purpose is claiming storage after cleaning tables or dropping them.
do this command:
press ctrl+w and find:
this command used twice in the file after this command you see nested if, so in the nested if change:
to
in both cases after this your export function will work well