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 'OPTION SQL_SELECT_LIMIT=1' at line 1
spring啓動的時候報這種錯誤,肯定是mysql的驅動版本和mysql數據庫的版本沒對應好
我的sql數據庫是5.7.18,用了5.1.8版本的驅動就報這個錯,改用5.1.31就沒問題
我用的數據庫連接池是c3p0,用druid的好像不會出現這個問題,有待驗證。