| 34 | |
| 35 | '''Step 3 - Create / Grant Mysql permissions''' |
| 36 | |
| 37 | If a new user is needed run the following, replace necessary details |
| 38 | |
| 39 | {{{CREATE USER 'briccsext02_user'@'uhlbriccsext02.xuhl-tr.nhs.uk' IDENTIFIED BY 'password'}}} |
| 40 | |
| 41 | Grant necessary privileges to user. |
| 42 | |
| 43 | {{{GRANT USAGE ON *.* TO 'briccsext02_user'@'uhlbriccsext01.xuhl-tr.nhs.uk' IDENTIFIED BY 'password'}}} |
| 44 | {{{GRANT ALL PRIVILEGES ON redcap6168_briccsext.* TO 'briccsext02_user'@'uhlbriccsext01.xuhl-tr.nhs.uk';}}} |
| 45 | {{{GRANT ALL PRIVILEGES ON redcap6168_briccsext.* TO 'briccsext02_user'@'uhlbriccsext02.xuhl-tr.nhs.uk';}}} |
| 46 | |
| 47 | If user already exists |
| 48 | |
| 49 | {{{GRANT ALL PRIVILEGES ON redcap6168.* TO 'redcap'@'10.156.254.207';}}} |
| 50 | |
| 51 | or |
| 52 | |
| 53 | {{{GRANT ALL PRIVILEGES ON redcap6168_briccsext.* TO 'briccsext_user'@'uhlbriccsext01.xuhl-tr.nhs.uk';}}} |
| 54 | |
| 55 | |