AP81 Posted January 2, 2007 Share Posted January 2, 2007 Hi guys,I am trying to do the following (with no luck):1.stop the MySQL service 2.copy database tables into the mysql dir3.start MySQL againPHP fails with the following:passthru/exec/system('service mysqld stop', $retval);passthru/exec/system('/etc/init.d/mysqld stop', $retval);passthru/exec/system('/media/datadrive/stopmysql.sh', $retval);MySQL hotcopy or MySQL dump is not an option. I have been told my backups and restores must be done manually (i.e.Stop MySQL, copy tables to MySQL dir -OR- backup tables, start MySQL. I have the backups working fine, which is a cron task done every day, it is just automating a restore via PHP which is causing me headaches.Any help is appreciated.Thanks,Adam Quote Link to comment Share on other sites More sharing options...
the_oliver Posted January 2, 2007 Share Posted January 2, 2007 What operating system are you running it on? Quote Link to comment Share on other sites More sharing options...
AP81 Posted January 2, 2007 Author Share Posted January 2, 2007 Fedora 5. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.