VPS侦探论坛

 找回密码
 注册
查看: 2904|回复: 1

文件夹询问:/etc/mysql/conf.d/disable_strict_mode.cnf

[复制链接]
发表于 2017-11-24 17:38:58 | 显示全部楼层 |阅读模式

军哥:
     我装lamp1.4, mysql 5.7,现我要安装ilias,它有个要求, sudo nano /etc/mysql/conf.d/disable_strict_mode.cnf, 可我找不到这个目录去加这个文件,我应加到哪个文件夹下?谢谢!


下面为参考信息:




IMPORTANT NOTICE: With MySQL 5.6 and above, MySQL activates the options STRICT_TRANS_TABLES and STRICT_ALL_TABLES by default. Please deactivate, e.g.: https://serverpilot.io/community/articles/how-to-disable-strict-mode-in-mysql-5-7.html
[size=1.2]To disable strict SQL mode, SSH in to your server as root and create a new configuration file using nano or the editor of your choice:
sudo nano /etc/mysql/conf.d/disable_strict_mode.cnf[size=1.2]In the file, enter these two lines:
[mysqld]sql_mode=IGNORE_SPACE,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CR
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-11-24 19:06:23 | 显示全部楼层


没有这个目录和文件,直接在 /etc/my.cnf 中添加
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-3-19 13:25 , Processed in 0.025723 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表