MySQL server has gone away on wordpress

whenever I am trying to open my website it is displaying this error Error establishing a database connection website URL and after sometimes it work again without doing anything to it, i will like to known the cause of it . please help me fix this.
when i tried access my database i got this message

Normal when you’ve exceeded free limits.
Just wait it out :slight_smile: