CREATE DATABASE IF NOT EXISTS crm
    CHARACTER SET utf8mb4
    COLLATE utf8mb4_unicode_ci;

CREATE DATABASE IF NOT EXISTS crm_testing
    CHARACTER SET utf8mb4
    COLLATE utf8mb4_unicode_ci;

GRANT ALL PRIVILEGES ON crm.* TO 'dbuser'@'%';
GRANT ALL PRIVILEGES ON crm_testing.* TO 'dbuser'@'%';

FLUSH PRIVILEGES;
