gpt4 book ai didi

Windows 上的 Mysql --secure-file-priv

转载 作者:行者123 更新时间:2023-11-29 06:13:55 25 4
gpt4 key购买 nike

我使用 MySQL 安装程序在 Windows 上安装了 Mysql,然后在安装过程终止后我只能访问 Mysql 5.7 命令行客户端,我的第一个问题是我不能访问 Mysql 服务器吗?然后我尝试使用 Load data infile 从文件加载数据,它返回错误:

Error Code: 1290. The MySQL server is running with the --secure-file-priv option so it cannot execute this statement

谁能帮我找到解决办法?提前致谢

最佳答案

我上次安装 mysql 时没有遇到这种问题。对于 GUI 部分,我在 MySQL 工作台中做我的工作,如果它可以帮助的话......你是否仔细检查了安装时使用的选项?也许您使用自定义选项删除了安装包的某些部分。

对于第二个问题,我认为这篇文章可能会有所帮助:Error Code: 1290. The MySQL server is running with the --secure-file-priv option so it cannot execute this statement

这可能是一个权限问题,所以也许您可以尝试使用 --skip-grant-tables 选项作为一种快速而肮脏的解决方法,但这样做应该是暂时的。

关于Windows 上的 Mysql --secure-file-priv,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36934080/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com