Custom module installing issue

HI,
I’m Using SuiteCRM 7.13.0. I created one custom module and added some custom code.
the issue is, this module has been Installed in mt local. and while installing the server it shows,

Installing Language Packs
Rebuilding Language…en_us
Installing layoutdefs extension
Rebuilding ActionViewMap…
Rebuilding ActionFileMap…
Rebuilding ActionReMap…
Rebuilding Administration…
Rebuilding EntryPointRegistry…
Rebuilding Extensions…
Rebuilding FileAccessControlMap…
Rebuilding Layoutdefs…
Rebuilding GlobalLinks…
Rebuilding LogicHooks…
Rebuilding Menus…
Rebuilding Include…
Rebuilding ScheduledTasks…
Rebuilding UserPage…
Rebuilding Utils…
Rebuilding Vardefs…
Rebuilding JSGroupings…
Rebuilding Actions…
Rebuilding PDF…
Rebuilding ExternalOAuthProviders…
Installing Images
Installing Relationships
Rebuilding Vardefs…
Rebuilding Layoutdefs…
Installing Bean : GoogleForm
Database failure. Please refer to suitecrm.log for details.

I checked the error log .

Retrieving record by id users:1 found Query Failed: SELECT users.* FROM users WHERE users.id = ‘1’ AND users.deleted=0 LIMIT 0,1: MySQL error 2006: MySQL server has gone away

What should I do?

That’s a MySQL problem, your database is crashing. Just search Google for mysql server has gone away and go through the top results, there are a number of possible causes.