The MySQL server is running with the --secure-file-priv option so it cannot execute this statement

18 篇文章 19 订阅

今天在使用ARTMO工具初始化时总是出现错误,The MySQL server is running with the --secure-file-priv option so it cannot execute this statement。根据官方帮助文档需要对mysql的my.ini进行修改。

转载:https://blog.csdn.net/weixin_44595372/article/details/88723191

我的这个mysql安装路径是d盘,而且my.ini也没有secure_file_priv这一项
在这里插入图片描述
第一步:先查看secure-file-priv的值
win+R,cmd,然后切换到d盘,切换到MySQL的bin文件夹并登录
在这里插入图片描述
然后输入 show variables like ‘%secure%’ ;
secure_file_priv会显示为null

secure_file_prive=null ––限制mysqld 不允许导入导出
secure_file_priv=/path/ – --限制mysqld的导入导出只能发生在默认的/path/目录下
secure_file_priv=’’ – --不对mysqld 的导入 导出做限制

第二步:找到my.ini,用记事本打开,直接添加

#Secure File Priv.
secure-file-priv=""
在这里插入图片描述
保存。

第三步:重启MySQL服务。
计算机管理>>服务与应用程序>>服务>>mysql>>右键重新启动>>完成重启

第四步:cmd中再看一眼是否已经变化
在这里插入图片描述
这样ARTMO启动就不会报错了

Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated

转载:https://blog.csdn.net/qq_15957557/article/details/110281847
在my.ini里加上sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值