UPDATE `grampsd_wiki`.`page` SET `page_restrictions` = 0x656469743d7379736f703a6d6f76653d7379736f70 WHERE `page`.`page_title` ='Title_of_the_page_in_the_wiki' collate utf8_unicode_ci LIMIT 1;
(You'll need to replace the spaces in the page title with underscores...)
I do that concatenation in a spreadsheet, creating the (long) SQL statements by combining a first part, the page names and the last part...
That updates a blob field to force protection without having to do the pages individually. You need to do the above sql statement for each page that you want to protect...