mirror of
				https://github.com/1Panel-dev/1Panel.git
				synced 2025-10-23 13:56:17 +08:00 
			
		
		
		
	fix: 解决创建数据库超时问题 (#1037)
This commit is contained in:
		
							parent
							
								
									25c2246782
								
							
						
					
					
						commit
						b966ab3e11
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -554,7 +554,7 @@ func excuteSql(containerName, password, command string) error { | |||
| } | ||||
| 
 | ||||
| func excSQL(containerName, password, command string) error { | ||||
| 	ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second) | ||||
| 	ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second) | ||||
| 	defer cancel() | ||||
| 	cmd := exec.CommandContext(ctx, "docker", "exec", containerName, "mysql", "-uroot", "-p"+password, "-e", command) | ||||
| 	stdout, err := cmd.CombinedOutput() | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue