mysql
SQLSTATE[HY000]: General error: 1290 The MySQL server is running with the LOCK_WRITE已关闭评论 SQLSTATE[HY000]: General error: 1290 The MySQL server is running with the LOCK_WRITE
{“code”:”HY000″,”line”:669,”message”:”SQLSTATE[HY000]: General error: 1290 The MySQL server is running with the LOCK_WRITE option so it cannot execute this statement (SQL: update `oauths` set `token` = {\”access_token\”:\”ya29.a0ATi6K2vovZ-2vI9iQs9nmxdhy_lo2H49o14pKqCwqjOSpwgyOmZyGKQQHGX2MizxLOLkkR2FVA0209\”,\”expires_in\”:3599,\”scope\”:\”https:\\/\\/www.googleapis.com\\/auth\\/youtube.upload https:\\/\\/www.googleapis.com\\/auth\\/yt-analytics-monetary.readonly https:\\/\\/www.googleapis.com\\/auth\\/userinfo.profile https:\\/\\/www.googleapis.com\\/auth\\/yt-analytics.readonly openid https:\\/\\/www.googleapis.com\\/auth\\/youtubepartner https:\\/\\/www.googleapis.com\\/auth\\/youtube https:\\/\\/www.googleapis.com\\/auth\\/userinfo.email https:\\/\\/www.googleapis.com\\/auth\\/youtubepartner-content-owner-readonly https:\\/\\/www.googleapis.com\\/auth\\/youtube.force-ssl\”,\”token_type\”:\”Bearer\”,\”id_token\”:\”eyJhbGciOiJSUzI1NiIsImtpZCI6IjRmZWI0NGYwZjdhN2UyN2M3YzQwMzM3OWFmZjIwYWY1YzhjZjUyZGMiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovLTXF5eWMybWFyLVY3LVZ3UHpHRGY5SEFiRWRFT091eWxndXFad2RrSl89czk2LWMiLCJnaXZlbl9uYW1lIjoiOHNpYW4iLCJmYW\”,\”created\”:1762736405,\”refresh_token\”:\”1\\/\\/0eTKg6m6g981nCgYIARAAGA4SNwF-L9IrAAe4Qsi9dETljxWrkhxJkhL1yZ4\”}, `status` = invalid, `oauths`.`updated_at` = 2025-11-10 09:00:05 where `id` = 1505)”}
分析原因是写入失败,去看mysql的负载情况,发现数据库到期了,只能查询不能写入。通过给数据库续费得以解决。