Created
          September 6, 2019 13:01 
        
      - 
      
- 
        Save leewin12/119c7189440a506b38a0242bccff21c7 to your computer and use it in GitHub Desktop. 
    Percona MySQL 5.7.x limits config
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $ vim /etc/systemd/system/mysql.service | |
| [Service] | |
| LimitNOFILE = infinity | |
| LimitCore = infinity | |
| LimitMEMLOCK = infinity | |
| $ systemctl daemon-reload | |
| $ service mysql restart | |
| $ ps -ef | grep mysql | awk '{print $2}' | head -n1 | xargs -I{} cat /proc/{}/limits | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment