外观
MySql执行语句常见问题
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) MySQL 密码正确却无法本地登录
- 原因:库中的 user 表缺少一个 root 指向 host:localhost 的数据项,只有一个 root 指向 host:主机名的数据项,所以怎么也无法利用 root 账户登录 MySQL。
错误:Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences
- 原因:安全模式,非主键条件无法执行 update 或者 delete 命令
错误:更新时 [Err] 1292 - Truncated incorrect DOUBLE value: ','
- 原因:一般出现在用+拼接更新语句,语法不严谨
连接错误:MySqlConnector.MySqlException (0x80004005): SSL Authentication Error --System.ComponentModel.Win32Exception (@x80090302):要求的函数不受支持
- 原因:连接默认开启了 SSL,但是没有证书之类的
