I have a big problem! when I do this:
String query = \"SELECT * FROM utente WHERE confermato=1 and Username=\'\" + username
+ \"\' AND Password
If you are unable to stop your database, you can alternatively set the value of the max allowed packet parameter dynamically. To do so:
1. Log in as a root user.
2. You'll need to set the value as an integer, rather than '256M'. 256M is equivalent to 256*1024*1024, or 268435456.
3. mysql> SET GLOBAL max_allowed_packet=268435456;
4. To check that this has been applied:
a. Relogin to your mysql client.
b. mysql> SELECT @@max_allowed_packet;
Restart your Confluence instance.
You will still need to update your /etc/my.cnf file as described in the method above to make the change persistent.