從庫複寫報錯 SAVEPOINT 6e86db84_14847168f19__8000 語法錯誤。經排查,識別字元串中含 e 且後接數字,被解析器誤判為科學記號浮點數(如 6e86 = 6×10^86)。MySQL Bug 系統確認:Savepoint identifier is occasionally considered as floating point numbers。
Last_SQL_Error: Error 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '6e86db84_14847168f19__8000' at line 1' on query. Query: 'SAVEPOINT 6e86db84_14847168f19__8000'
6e86db84_14847168f19__8000 以數字開頭,含 e 後接數字,符合浮點數字面值模式。SAVEPOINT `6e86db84_14847168f19__8000`;
反引號(`,鍵盤波浪號鍵)強制將內容視為識別字元而非數值。
check、order、group)。mysqldump --quote-names、ORM 框架)。養成加反引號習慣,規避 99% 的識別字元解析陷阱。