美文网首页
MySQL 错误: BY clause; this is inc

MySQL 错误: BY clause; this is inc

作者: 菜鸟很浮夸 | 来源:发表于2020-05-04 12:10 被阅读0次
  1. sudo vim /etc/mysql/my.cnf
  2. 在文件底部粘贴下面代码:
[mysqld]
sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'
  1. 保存退出 vim
  2. 重启 MySQL: sudo service mysql restart

相关文章

网友评论

      本文标题:MySQL 错误: BY clause; this is inc

      本文链接:https://www.haomeiwen.com/subject/dmveghtx.html