2015年8月31日 星期一

C# + MySQL 資料庫連接的錯誤訊息,一行程式就解決

第一次寫 C# 連接 MySQL,第一次就出現問題

Exception: Fatal error encountered during command execution

解決方案是在資料庫連接字串後面加入:

Allow User Variables = True

收工。記得參數前面要加分號「;」