Disable all comments of WordPress posts by this simple MySQL query.
// Disable all comments UPDATE wp_posts SET comment_status = 'closed', ping_status = 'closed';