Magento2: MySQL server has gone away during installation

I have problem durring installation magento2 in my macbook. I think same way if you using Linux.

Problem in MySQL

MySQL server has gone away


After search in google i found the solution:

create or edit file /etc/my.cnf

After edit or create my.cnf than restart your mysql server

$ mysql.server restart

I hope these helps 🙂

Other resource: