Here is quick steps to setup MySQL
The DevTest specific data is in the Install manual, the MySQL information is not, here is the cheat sheet.
This example is for MySQL 5.7, but to use MySQL 8, change the drivers.
All supported DevTest releases.
All supported MySQL releases and drivers.
N/A
3—
The database needs to have the default code page set for UTF8, you will need the following files on Windows or OSX.
File Name => my.ini
location OSX=> /usr/local/mysql
location Windows => C:\Program Files\MySQL\MySQL Server 5.7
[mysqld]
collation_server=utf8_unicode_ci
character_set_server=utf8
4—
Create 3 databases, one for IAM, one for Enterprise Dashboard and one for the Registry. My iamdatabase is for IAM, edbdatabase is for the Enterprise Dashboard and the regdatabase is for the Registry. One user is added to the system and associated with each database. The default login for MySQL is root with no password. Once you have set a password you will need a -p to state you are specifying one.
mysql -u root
The following command are submitted via the command line utility mysql
create database iamdatabase
default character set utf8
default collate utf8_unicode_ci;
create database edbdatabase
default character set utf8
default collate utf8_unicode_ci;
create database regdatabase
default character set utf8
default collate utf8_unicode_ci;
grant usage on *.* to dtuser@localhost identified by 'itkorocks';
grant all privileges on iamdatabase.* to dtuser@localhost ;
grant all privileges on edbdatabase.* to dtuser@localhost ;
grant all privileges on regdatabase.* to dtuser@localhost ;
**Make sure you give access to all the machines that need access to MySQL Database to avoid any host related issues.
iam.db.vendor=mysql
iam.db.jdbc.driver.class=com.mysql.jdbc.Driver
iam.db.url=jdbc:mysql://localhost:3306/iamdatabase
iam.db.user=dtuser
iam.db.password=itkorocks
iam.db.jdbc.driver.path=<Fully qualified path where connector jar is>
The Enterprise Dashboard uses dradis.properties to set the edbdatabase.
File Name=> dradis.properties
dradis.db.internal.enabled=false
dradis.db.driverClass=com.mysql.jdbc.Driver
dradis.db.url=jdbc:mysql://localhost:3306/edbdatabase
dradis.db.user=dtuser
dradis.db.password=itkorocks
The Registry uses the site.properties to specify the MySQL database regdatabase.
File Name=> site.properties
lisadb.acl.poolName=common
lisadb.broker.poolName=common
lisadb.reporting.poolName=common
lisadb.dradiscache.poolName=common
lisadb.pool.common.driverClass=com.mysql.jdbc.Driver
lisadb.pool.common.url=jdbc:mysql://localhost:3306/regdatabase
lisadb.pool.common.user=dtuser
lisadb.pool.common.password=itkorocks
lisadb.internal.enabled=false
5—
Once you start up the database you can see the default code pages, they should look similar to this:
mysql> show variables like 'char%';
+--------------------------+---------------------------------------------------------+
| Variable_name | Value |
+--------------------------+---------------------------------------------------------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | utf8 |
| character_set_system | utf8 |
| character_sets_dir | C:\Program Files\MySQL\MySQL Server 5.7\share\charsets\ |
+--------------------------+---------------------------------------------------------+
8 rows in set (0.00 sec)
Recommended to install MySQL Workbench if running on a Windows platform or a Linux platform that accepts GUI, it is much easier to create schemas and users.