为什么 mysql 只有文本类型可用?

why mysql just text type is avaible?

我使用 php 编码并使用 PDO/MySQL 将用户上传的文件存储在数据库中

当我将 contents 列设置为 TEXT 脚本成功运行时 但 TEXT Type 限制为 64kb,文件大小接近 700kbs 所以我想将列类型设置为 MEDIUMTEXT 或任何 BLOB 类型 但是当我执行它和 运行 脚本时,我看到数据没有成功导入!!!问题可能在哪里?!

参考:11.4.3 The BLOB and TEXT Types https://dev.mysql.com/doc/refman/5.6/en/blob.html

摘录:

The maximum size of a BLOB or TEXT object is determined by its type, but the largest value you actually can transmit between the client and server is determined by the amount of available memory and the size of the communications buffers. You can change the message buffer size by changing the value of the max_allowed_packet variable, but you must do so for both the server and your client program.