MySql 8.0 Restore
I need create a script on powershell, twice on a day, restore production schema dump on test schema. I would like to take last dump created for restore operation
I've writed this
`$DumpPath ="C:\XXX\XXX"
$FileExt = "*.sql"
Get-ChildItem $DumpPath""$FileExt | Where-Object {$_.LastWriteTime} | Select-Object -Last 1 | mysql --batch --login-path=remote --defaults-extra-file="C:\XXX\XXX\AppData\Roaming\MySQL.mylogin.cnf" testschema`
It's correct or i'm completely full of?
Thanks
Subject
Views
Written By
Posted
MySql 8.0 Restore
678
August 18, 2020 01:31AM
362
August 18, 2020 11:11AM
368
August 19, 2020 08:42AM
350
August 19, 2020 10:23AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.