| 13 | Please note you will need to have an account on git. |
| 14 | |
| 15 | '''Step 2 - Backup Redcap Database''' |
| 16 | |
| 17 | Log on to the mysql database machine. |
| 18 | |
| 19 | {{{mysqldump --routines --skip-extended-insert --force -h localhost -u root -p redcap > $(date +\%d-\%m-\%Y-)_redcap.sql }}} |
| 20 | |
| 21 | This will create a database dump file. |
| 22 | |
| 23 | Connect to my sql. |
| 24 | |
| 25 | {{{mysql -u root -p}}} |
| 26 | |
| 27 | Create a database, make sure you postfix with Redcap version number |
| 28 | |
| 29 | {{{mysql > create database redcap6168}}} |
| 30 | |
| 31 | Import the lastest database. |
| 32 | |
| 33 | {{{mysql -u root -p -h localhost redcap6168 < 19-09-2016-_redcap.sql}}} |