exec('mysqldump -u'.$user.' -p'.$password.' --single-transaction --force --opt '.$database.' '.$table.' > relations.sql');
"mysqldump -u$user -p$password --single-transaction --force --opt --where 'ENTITY_FIELD = STATUS_ID AND ASSIGNED_BY_ID >0' $database $table > relations.sql"