Skip to content

Instantly share code, notes, and snippets.

@dannyvassallo
Last active April 26, 2016 17:38
Show Gist options
  • Save dannyvassallo/25dcca811f87e6381bbf2891d2ddad61 to your computer and use it in GitHub Desktop.
Save dannyvassallo/25dcca811f87e6381bbf2891d2ddad61 to your computer and use it in GitHub Desktop.
Fix WP Database Errors from Corrupted Tables using Desktop Server from ServerPress on El Capitan

#Fix Corrupted Tables on WP using DesktopServer

####Get full permissions

$ cd /Applications/XAMPP/xamppfiles/var/mysql/<<DATABASE NAME>>/
$ chmod -R 777 .

####Fix each reportedly broken table (do this once for each broken table):

$ sudo myisamchk -r -v -f --sort_buffer_size=128M --key_buffer_size=128M /Applications/XAMPP/xamppfiles/var/mysql/<<DATABASE NAME>>/<<BROKEN TABLE NAME>>.MYI

*Note: Don't copy paste in the dollar sign, silly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment