increase file open

un bug ubuntu bien embêtant mais facilement réglé, mysql plante si on augmente pas le nombre de fichiers que mysql peut ouvrir ainsi que la mémoire

sudo su
saveback /lib/systemd/system/mysql.service
vi  /lib/systemd/system/mysql.service
#Add the following lines to the end of it:
LimitNOFILE=infinity
LimitMEMLOCK=infinity
sudo systemctl daemon-reload
/etc/init.d/mysql restart
#check
mysql
SHOW VARIABLES LIKE 'open%';