Google "MySQLTuner." Upload that to your server. run it and wait a week or two for it to collect data. It will give you best optimization for your server. There isn't a one-fit-all for MySQL. It depends on what you have and how busy your server is or not. I use it on my crypto exchange ranking website and works perfectly.