Executing frappe.patches.v12_0.setup_tags throws pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query')

Similar problem in this thread, I wonder if @trentmu 's idea of commenting out the patch would get you further along?