| | 88 | === 2. Create Databases |
| | 89 | |
| | 90 | 1. Create the following script: |
| | 91 | |
| | 92 | {{{ |
| | 93 | # Create Opal database and user. |
| | 94 | # |
| | 95 | # Command: mysql -u lampuser -p < create_opal_database.sql |
| | 96 | # |
| | 97 | |
| | 98 | CREATE DATABASE opal_data CHARACTER SET utf8 COLLATE utf8_bin; |
| | 99 | |
| | 100 | CREATE USER 'opal_data' IDENTIFIED BY '<opal-data-user-password>'; |
| | 101 | GRANT ALL ON opal_data.* TO 'opal_data'@'localhost' IDENTIFIED BY '<opal-data-user-password>'; |
| | 102 | FLUSH PRIVILEGES; |
| | 103 | |
| | 104 | CREATE DATABASE opal_identifiers CHARACTER SET utf8 COLLATE utf8_bin; |
| | 105 | |
| | 106 | CREATE USER 'opal_identifiers' IDENTIFIED BY '<opal-identifiers-user-password>'; |
| | 107 | GRANT ALL ON opal_identifiers.* TO 'opal_identifiers'@'localhost' IDENTIFIED BY '<opal-identifiers-user-password>'; |
| | 108 | FLUSH PRIVILEGES; |
| | 109 | }}} |
| | 110 | |
| | 111 | 2. Change the passwords to something appropriate |
| | 112 | 3. Run the script like it says in the command comment at the top of the script. |
| | 113 | |