mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
change userclass lte current user class
This commit is contained in:
@@ -85,8 +85,8 @@ class ToolRepository extends BaseRepository
|
||||
$config = config("database.connections.$connectionName");
|
||||
$filename = sprintf('%s/%s.database.%s.sql', sys_get_temp_dir(), basename(base_path()), date('Ymd.His'));
|
||||
$command = sprintf(
|
||||
'mysqldump --user=%s --password=%s --port=%s --single-transaction --no-create-db --databases %s >> %s',
|
||||
$config['username'], $config['password'], $config['port'], $config['database'], $filename,
|
||||
'mysqldump --user=%s --password=%s --host=%s --port=%s --single-transaction --no-create-db --databases %s >> %s',
|
||||
$config['username'], $config['password'], $config['host'], $config['port'], $config['database'], $filename,
|
||||
);
|
||||
$result = exec($command, $output, $result_code);
|
||||
do_log(sprintf(
|
||||
|
||||
Reference in New Issue
Block a user