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 Link to comment https://forums.phpfreaks.com/topic/32541-stop-mysql-service/ 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? Link to comment https://forums.phpfreaks.com/topic/32541-stop-mysql-service/#findComment-151514 Share on other sites More sharing options...
AP81 Posted January 2, 2007 Author Share Posted January 2, 2007 Fedora 5. Link to comment https://forums.phpfreaks.com/topic/32541-stop-mysql-service/#findComment-151759 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.