-1

I recently reprovisioned my server from MS 2008 r2 to MS 2012 r2 and tried to restore the database but I the following error:

Unable to restore database 'mediawiki_1'
ERROR 2006 (HY000) at line 848: MySQL server has gone away
(Error code 22)
---------------------- Debug Info -------------------------------

In reference to the best answer found at https://stackoverflow.com/questions/10474922/error-2006-hy000-mysql-server-has-gone-away?s=2|3.6649 I need to edit the my.cnf file to

 max_allowed_packet=64M

Can someone point me to where I can find this file/run a script in Powershell to make the necessary change?

Community
  • 1
  • 1
user3716507
  • 39
  • 1
  • 5

2 Answers2

1

You are using a windows machine. my.cnf is for linux. On a windows machine you would have my.ini file. The default path to the my.ini file looks something like C:\ProgramData\MySQL\MySQL Server 5.6. Although, you may have an older version and/or your default path maybe different.

I would run this command dir *my.ini* /s in ms-dos(command prompt) from the root directory (C:) and you should be able to find the file that way.

BK435
  • 3,076
  • 3
  • 19
  • 27
0

C:\Program Files (x86)\Parallels\Plesk\Databases\MySQL\Data\my.ini

added line to file:

max_allowed_packet=64M
user3716507
  • 39
  • 1
  • 5