File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,36 +12,36 @@ This is a tool created to dump and restore **MySql** and **MariaDb**.
1212 - Dump all the content of database
1313
1414 #### In ` dump.ps1 ` inform
15- ```
15+ ``` ps1
1616 $user = ''
1717 $password = ''
1818 $address = ''
1919 ```
2020
2121 #### To ignore tables just create
22- ```
22+ ```ps1
2323 $ignoredDataTables = @(
2424 'table1',
2525 'table2'
2626 )
2727 ```
2828
2929 #### To dump database inform database
30- ```
30+ ```ps1
3131 dumpDatabase "data_base" $ignoredDataTables
3232 ```
3333
3434* ## Restore
3535 `restore.ps1` restores the `.sql` created by `dump.ps1`
3636
3737 #### In `restore.ps1` inform
38- ```
38+ ```ps1
3939 $user = ''
4040 $password = ''
4141 $address = ''
4242 ```
4343
4444 #### To restore database just run
45- ```
45+ ```ps1
4646 .\restore.ps1 "data_base.sql"
4747 ```
You can’t perform that action at this time.
0 commit comments