Ben yedek mysql veritabanına mysqldump kullanan bu kodu var. Sorun bu ölümcül hatayı alıyorum olduğunu:
Fatal error: Maximum execution time of 60 seconds exceeded in C:\wamp\www\pos\php\backupdb.php on line 13
Hat 13 son hattıdır.
<?php
$backupFile = 'c:\\onstor'. date("Y-m-d-H-i-s") . '.sql';
$command = "mysqldump --opt -u root -p onstor > $backupFile";
system($command);
?>
What do I do, I think the code is okay since I've tried it in command prompt and it worked. Is it bad that I have put the path to mysql/bin to the environment variables.