gateway error, probably associated to my database not set up correctly

Can you point to to some documentation that has step by step directions to set up a database correctly. I have siteground and unfortunately they are not mindful that to some even the basics are advanced LOL

This MySQL server has been running for 7 days, 4 hours, 17 minutes and 46 seconds. It started up on Jun 26, 2017 at 05:19 AM.

Traffic # ø per hour

Received 270.9 GiB 1.6 GiB

Sent 13.7 TiB 81.1 GiB

Total 13.9 TiB 82.7 GiB

Connections # ø per hour %

Max. concurrent connections 209 — —

Failed attempts 187 k 1,085.47 2.23%

Aborted 58.4 k 338.74 0.70%

Total 8,371 k 48.59 k 100.00%

I get a lot of traffic, none of it is human