我如何在MySQL Workbench中看到我的图像(blob)
我很难看到我的形象。不管我做什么,都变无效。
SHOW VARIABLES LIKE 'secure_file_priv';
在该文件夹中,我有一个称为image的文件夹,然后是图像(.jpg),
但是,
select LOAD_FILE('\Image\agatti-airport-india2.jpg');
给我
我已经尝试过/image/./image/ ,图像/,图像\和所有变体。
我还尝试了绝对路径,这是由于某种原因无法使用的。
I am having trouble seeing my image. No matter what I do, it turns up null.
SHOW VARIABLES LIKE 'secure_file_priv';
In that folder, I have a folder called Image, and then images (.jpg)
however,
select LOAD_FILE('\Image\agatti-airport-india2.jpg');
gives me
I've tried /Image/, ./Image/, Image/ , Image\ and all the variations.
I've also tried absolute path, which doesn't work for some reason.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因此,我找到了一个答案
您必须放置整个绝对路径,其中包括“ Secure_file_priv”之类的节目变量;
您必须确保使用前向斜杠(/)而不是backslash()
,
c:/programData/mysql/mysql/mysql/mysql Server 8.0/uploads/image/agatti-airport-india2.jpg
将正确。我仍然不知道为什么通往其他路径的绝对途径将不起作用So I've found an answer
You have to put the entire absolute path, that includes the show variables like "secure_file_priv";
You have to make sure you use forward slash (/) not backslash ()
In my case,
C:/ProgramData/MySQL/MySQL Server 8.0/Uploads/Image/agatti-airport-india2.jpg
would be correct. I still don't know why absolute paths to other paths would not work