You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
unboundedpress/mysql/init/init_dbs.sql.template

19 lines
580 B
Plaintext

6 years ago
# create databases
set global innodb_file_format=Barracuda;
set global innodb_large_prefix=on;
CREATE DATABASE IF NOT EXISTS `gitea`;
CREATE DATABASE IF NOT EXISTS `nextcloud`;
# create root user and grant rights
CREATE USER 'username'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
# set character set
use nextcloud;
ALTER DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
# after, be sure to run:
# occ config:system:set mysql.utf8mb4 --type boolean --value="true"
# occ maintenance:repair