我有一个 MySQL 数据库,我在所有表中使用一binary(36)列作为唯一的列id。
当引入phpMyAdmin 4.3.0时,他们似乎添加了一项功能,其中 BLOB 和 BINARY 类型的列将其数据显示为链接,单击该链接可以让您下载文件(在我的情况下,下载了.bin文件)。
如果要编辑数据,则必须单击单元格的空白部分以打开“编辑”模式。
我可以看到这很有用,但就我而言,我对它下载的 .bin 文件不感兴趣。
在较旧版本的 phpMyAdmin(例如4.1.0)中,此功能不可用(或至少默认情况下未启用)。您只需单击显示的文本,就会弹出编辑对话框。
我查看了phpMyAdmin 的文档,但找不到禁用此功能的设置。有$cfg['ProtectBinary']设置,但我已经将它设置为blob,所以这应该不是问题。
理想情况下,我想使用最新版本的 phpMyAdmin,但前提是我可以更改此设置。谢谢。
https://media.readthedocs.org/pdf/phpmyadmin/latest/phpmyadmin.pdf说:
\n\n$cfg[\xe2\x80\x99ProtectBinary\xe2\x80\x99]\nType boolean or string\nDefault value \xe2\x80\x99blob\xe2\x80\x99\nDefines whether BLOB or BINARY columns are protected from editing when browsing a table\xe2\x80\x99s content. Valid\nvalues are:\n\xe2\x80\xa2false to allow editing of all columns;\n\xe2\x80\xa2\xe2\x80\x99blob\xe2\x80\x99 to allow editing of all columns except BLOBS;\n\xe2\x80\xa2\xe2\x80\x99noblob\xe2\x80\x99 to disallow editing of all columns except BLOBS (the opposite of \xe2\x80\x99blob\xe2\x80\x99);\n\xe2\x80\xa2\xe2\x80\x99all\xe2\x80\x99 to disallow editing of all BINARY or BLOB columns.\nRun Code Online (Sandbox Code Playgroud)\n\n因此,由于默认值为“blob”,因此您应该将其设置为 false:
\n\n$cfg[\xe2\x80\x99ProtectBinary\xe2\x80\x99] = false;\nRun Code Online (Sandbox Code Playgroud)\n
| 归档时间: |
|
| 查看次数: |
323 次 |
| 最近记录: |