Skip to content
/ gh-ost Public
forked from github/gh-ost

GitHub's Online Schema Migrations for MySQL

License

Notifications You must be signed in to change notification settings

justdba/gh-ost

 
 

Repository files navigation

gh-ost

  • alter="noop", used for optimize table
  • alter="noop", where-str="id>5000"; optimize table also delete history data(id<=5000)

example:

--where-str="id>5000" --user="" --password="" --host="127.0.0.1" --port="40001" --database="testdb" --table="test5" --alter="noop" --nice-ratio=0.1 --verbose --assume-rbr --postpone-cut-over-flag-file=/tmp/gh-ost.testdb.test2.postpone --serve-socket-file=/tmp/gh-ost.testdb.test2.sock --execute --initially-drop-ghost-table --initially-drop-old-table

About

GitHub's Online Schema Migrations for MySQL

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 93.9%
  • Shell 6.1%