CREATE DATABASE IF NOT EXISTS `log`;
CREATE DATABASE IF NOT EXISTS `template`;

GRANT ALL PRIVILEGES on *.* to 'template'@'%';