Seems like you get a connection timeout to your database, I’d suggest you to contact your hosting company and ask about why it’s getting timeout.
remember: WE are not your hosting company. and before you say you have none … I’d strongly recommend getting one!
sorry if this sounds rude, but this really isn’t the right place to learn basic configuration tasks for whatever combination of services you may decide to try and play around with…
If you need proper support, feel free to send me a PM and I’ll tell you the costs per hour for personal support.
Default values where for me enough reasons to alter them how ever they depend on you server performance and load and usage… And I can’t guarantee that my settings are suitable for your server.