Databas config according to nextcloud docs
This commit is contained in:
		
							parent
							
								
									d5ab44ec00
								
							
						
					
					
						commit
						9f1229e68e
					
				
					 1 changed files with 24 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -68,9 +68,33 @@
 | 
			
		|||
 | 
			
		||||
  services.mysql = {
 | 
			
		||||
    settings = {
 | 
			
		||||
      server = {
 | 
			
		||||
        skip_name_resolve = 1;
 | 
			
		||||
        innodb_buffer_pool_size = "128M";
 | 
			
		||||
        innodb_buffer_pool_instances = 1;
 | 
			
		||||
        innodb_flush_log_at_trx_commit = 2;
 | 
			
		||||
        innodb_log_buffer_size = "32M";
 | 
			
		||||
        innodb_max_dirty_pages_pct = 90;
 | 
			
		||||
        query_cache_type = 1;
 | 
			
		||||
        query_cache_limit = "2M";
 | 
			
		||||
        query_cache_min_res_unit = "2k";
 | 
			
		||||
        query_cache_size = "64M";
 | 
			
		||||
        tmp_table_size = "64M";
 | 
			
		||||
        max_heap_table_size = "64M";
 | 
			
		||||
        slow_query_log = 1;
 | 
			
		||||
        slow_query_log_file = /var/log/mysql/slow.log;
 | 
			
		||||
        long_query_time = 1;
 | 
			
		||||
      };
 | 
			
		||||
      mysqld = {
 | 
			
		||||
        log-error = "/var/log/mysql_err.log";
 | 
			
		||||
        port = 3306;
 | 
			
		||||
        character_set_server = utf8mb4;
 | 
			
		||||
        collation_server = utf8mb4_general_ci;
 | 
			
		||||
        transaction_isolation = READ-COMMITTED;
 | 
			
		||||
        binlog_format = ROW;
 | 
			
		||||
        innodb_large_prefix = on;
 | 
			
		||||
        innodb_file_format = barracuda;
 | 
			
		||||
        innodb_file_per_table = 1;
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue