备份函数:
<?php
include "../../Connections/my_conn.php";//链接数据库
$mysqlstr = "D:///AppServ//MySQL//bin//mysql -uroot -hlocalhost -p123456 lvyoufenxiao_database<bak/".$_POST[r_name];
exec($mysqlstr);
echo "<script>alert('恢复成功');location='data_stock.php'</script>";
?>
还原函数:
<?php
include "../../Connections/my_conn.php""; //链接数据库
$mysqlstr = "D:///AppServ//MySQL//bin//mysql -uroot -hlocalhost -p123456 lvyoufenxiao_database<bak/".$_POST[r_name];
exec($mysqlstr);
echo "<script>alert('恢复成功');location='data_stock.php'</script>";
?>