1、找到安装路径
show variables like '%sql_mode';
SHOW VARIABLES LIKE 'config_file';
SHOW VARIABLES LIKE '%datadir%';
SHOW VARIABLES;
2、修改
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION