Is it a standalone DB server or Application is also hosted on top of it. You can give 50-70% of RAM to memory parameters like Innodb_buffer_pool_size ( Innodb ) and key_cache ( Myisam ) for mysql tables.
Below link : http://mysql.rjweb.org/doc.php/memory will give you a brief idea. Thanks