新建一个php文件,写入
date_default_timezone_set(‘PRC‘);
$bak_file_name = date(‘YmdHis‘,time()).‘.bak‘;
$command = "D:\amp\mysql\bin\mysqldump.exe -uroot -p密码 temp dept>e:/$bak_file_name";
exec($command);
时间: 2024-10-26 09:49:49
新建一个php文件,写入
date_default_timezone_set(‘PRC‘);
$bak_file_name = date(‘YmdHis‘,time()).‘.bak‘;
$command = "D:\amp\mysql\bin\mysqldump.exe -uroot -p密码 temp dept>e:/$bak_file_name";
exec($command);