MysqlDump - 没有增量

时间:2015-10-13 14:54:02

标签: mysql mysqldump auto-increment

有没有auto_increment转储的选项。 使用auto_increment 0

保持表结构

我用

public function fileUpload(){
    $ext = ['pdf', 'doc', 'ppt', 'xls', 'docx', 'pptx', 'xlsx', 'rar', 'zip'];
    $data = Request::all();
    $name = $data['file']->getClientOriginalName();
    $rules = [
        'file' => 'required'
    ];
    $v = Validator::make($data, $rules);
    if($v->passes()){
        // Check safe file validation
        // should here or something? and how to prevent bypass
        // arbitrary file upload especially evil script.
        $data['file']->move(public_path('assets/uploads'), $name);
        return 'file uploaded';
    }else{
        return 'file upload failed';
    }

1 个答案:

答案 0 :(得分:0)

参考另一个问题可能是最好的答案:

mysqldump - Export structure only without autoincrement