mysql.sql 432 B

1234567891011
  1. SET @s = IF(version() < 8 OR version() LIKE '%MariaDB%',
  2. 'SET GLOBAL innodb_file_per_table = ON,
  3. innodb_file_format = Barracuda,
  4. innodb_large_prefix = ON;',
  5. 'SET GLOBAL innodb_file_per_table = ON;');
  6. PREPARE stmt1 FROM @s;
  7. EXECUTE stmt1;
  8. DROP DATABASE IF EXISTS gogs;
  9. CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;