最近使用新版本的mysql,执行语句的时候报错。网上找了一下,解决方法如下:

vim /etc/mysql/conf.d/mysql.cnf

[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

service mysql restart

转载自:http://www.cnblogs.com/ThinkVenus/p/6821424.html

posted on 2017-11-22 17:40  你不知道的浪漫  阅读(286)  评论(0编辑  收藏  举报