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

Solution

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:

  • http://devdocs.magento.com/guides/v2.1/install-gde/trouble/tshoot_mysql_table-open-cache.html
  • http://stackoverflow.com/questions/17813630/mysql-5-6-headaches-on-mac-osx/22773887#22773887
  • https://github.com/magento/magento2/issues/2805
  • http://bugs.mysql.com/bug.php?id=79125