且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

文件上传但不保存在数据库中

更新时间:2023-02-15 12:29:40

您好,



因为您没有使用关键字 LOCAL 在您的查询中,您需要将文件传输到运行MySQL的服务器,它应该位于MySQL进程可读的文件夹中。如果您不想将文件传输到MySQL服务器计算机,请在关键字 DATA 之后添加LOCAL关键字。



请参阅此处的MySQL文档[ ^ ]



问候,
Hello,

Since you are not using keyword LOCAL in your query, You need to transfer the file to the server on which MySQL is running and it should be in a folder readable by MySQL process. If you do not want to transfer the file to MySQL server machine then add LOCAL keyword just after the keyword DATA.

Please refer to MySQL documentation found here[^]

Regards,