Mysql_send_long_data() is longer than 'max_allowed_packet' bytes

I use mysql for data storage

ui = true

storage "mysql" {
  address = "****:32306"
  username = "vault"
  password = "vault"
  database = "vault"

listener "tcp" {
  address = "[::]:8200"
  tls_cert_file = "/certs/webServer.crt"
  tls_key_file  = "/certs/webServer.key"
  tls_disable = false
  tls_require_and_verify_client_cert = true
  tls_client_ca_file = "/certs/webClientCA.pem"

but suddenly an error is reported when creating new secret data(by @file

This should be storing data that exceeds the maximum capacity of the database.
I can configure the K/V v2 secrets engine to do so by setting the delete_version_after parameter. This is not the configuration I want. I want to know how to configure the storage size and the limit of creating secret data at one time.
I didn’t find the corresponding configuration in the official document, how should I solve it in this case.thank you very much.

This is a MySQL problem, not a Vault problem - it enforces an arbitrary limit on maximum size of single data items flowing through the network protocol, and it seems your file exceeds this size.

Please review your database server’s documentation re the max_allowed_packet setting and change it to be large enough for your use cases.