Disable WordPress Comments on all posts with MySQL command

1.  Setting > Discussion : Disable comments of WordPress page

2: PhpMyAdmin: UPDATE wp_posts  SET comment_status = ‘closed’ WHERE comment_status = ‘open’;

B logbook : PHP | Javascript | Laravel | CodeIgniter | VueJs | ReactJs | WordPress