Skip to main content
Question

Unable to Restore DB

  • March 28, 2013
  • 4 replies
  • 9 views

Forum|alt.badge.img+20

Our JSS crashed after we upgraded to 10.8.3 and we had to restore it. Now I can't restore my DB. I get an error saying importing from command line is unsecure. We need this up ASAP!!!! Thanks for the help.

4 replies

donmontalvo
Forum|alt.badge.img+36
  • Hall of Fame
  • March 30, 2013

We ran into a similar problem where MySQL 5.6 was installed on an Xserve (instead of 5.5) and we had to take MySQL out of Strict Mode.

NOTE: The JAMF docs say to install MySQL 5.5 or later but in recent discussions, we've been told that 5.5 is the "last stable" version and 5.6 has some issues:

external image link

Can you post your /etc/my.cnf?

PS, the environment was inherited, not sure why MySQL 5.6 was installed if OS X Server already has MySQL.

<shrug>

HTH
Don


Chris_Hafner
Forum|alt.badge.img+27
  • Jamf Heroes
  • November 7, 2013

That warning is just that, a warning. Does the error say something like 'MySQL server has gone away'

Also are you trying to use a mysqldump by any chance? If you're trying to restore from a mysql dump you probably need to either increase your maxpacketsize or your timeout.


donmontalvo
Forum|alt.badge.img+36
  • Hall of Fame
  • March 28, 2014

Chris_Hafner
Forum|alt.badge.img+27
  • Jamf Heroes
  • March 28, 2014

That one is a good thread. Someone will need it here at some point!