2
0

mysql.sql 449 B

12345678910
  1. SET @s = IF(version() < 8 OR (version() LIKE '%MariaDB%' AND version() < 10.3),
  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;