0

I need to change "max_allowed_packet" property for mySQL data base from SPRING property file (application.yml). I found some topics about that, like this.

They proposed to use mySQL command line:

$>mysql --max_allowed_packet={some_value}

But maybe someone know new solution for this task? It would be great to have this ability.

sf_
  • 1,138
  • 2
  • 13
  • 28
  • 1
    Possible duplicate of [Changing max\_allowed\_packet property with Hibernate configuration](https://stackoverflow.com/questions/7518419/changing-max-allowed-packet-property-with-hibernate-configuration) – Markus Jun 09 '17 at 14:52

1 Answers1

0

You cannot change --max_allowed_packet property from spring application.yml file, because this is a mysql server property. Therefore you should set this property when you start the mysql server.

You could add it in my.cnf, check this answer

Andrei G
  • 660
  • 5
  • 12
  • 20