rabin 2 年之前
父节点
当前提交
941b2c98e0
共有 3 个文件被更改,包括 13 次插入11 次删除
  1. 11 9
      container/conf/db/mariadb/my.conf
  2. 1 1
      container/conf/web/php7/php.ini
  3. 1 1
      src/docker/conf/web.conf

+ 11 - 9
container/conf/db/mariadb/my.conf

@@ -36,14 +36,16 @@ user=root
 port            = 3306                                                     
 socket          = /run/mysqld/mysqld.sock                                  
 skip-external-locking                                                      
-key_buffer_size = 16M                                                      
-max_allowed_packet = 1M                                                    
-table_open_cache = 64                                                      
-sort_buffer_size = 512K                                                    
-net_buffer_length = 8K                                                     
-read_buffer_size = 256K                                                    
-read_rnd_buffer_size = 512K                                                
-myisam_sort_buffer_size = 8M                                              
+key_buffer_size = 500M                                                      
+max_allowed_packet = 1000M                                                    
+table_open_cache = 600                                                      
+sort_buffer_size = 800M                                                    
+net_buffer_length = 800M                                                   
+read_buffer_size = 800M                                                    
+read_rnd_buffer_size = 800M                                                
+myisam_sort_buffer_size = 800M   
+net_read_timeout = 120
+net_write_timeout = 900                                           
                                                                            
 # Point the following paths to different dedicated disks                   
 #tmpdir         = /tmp/                                                    
@@ -139,7 +141,7 @@ server-id       = 1
                                                                            
 [mysqldump]                                                                
 quick                                                                      
-max_allowed_packet = 16M                                                   
+max_allowed_packet = 1000M                                                   
                                                                            
 [mysql]                                                                    
 no-auto-rehash                                                             

+ 1 - 1
container/conf/web/php7/php.ini

@@ -668,7 +668,7 @@ auto_globals_jit = On
 ; Its value may be 0 to disable the limit. It is ignored if POST data reading
 ; is disabled through enable_post_data_reading.
 ; http://php.net/post-max-size
-post_max_size = 80M
+post_max_size = 800M
 
 ; Automatically add files before PHP document.
 ; http://php.net/auto-prepend-file

+ 1 - 1
src/docker/conf/web.conf

@@ -12,7 +12,7 @@ alias = mysql
 #使用mariadb来代替mysql
 image = mariadb
 #port = 3310:3306
-volumes = {container}conf/db/mariadb:/etc/mysql,/mariadb11/{name}/data:/var/lib/mysql
+volumes = {container}conf/db/mariadb:/etc/mysql,/mariadb/{name}/data:/var/lib/mysql
 environment = MYSQL_ROOT_PASSWORD=123456
 alias = mysql