I have a big problem! when I do this:
String query = "SELECT * FROM utente WHERE confermato=1 and Username='" + username
+ "' AND Password='" + password + "'";
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection con = DriverManager.getConnection("ind_server/nome_db","user","password");
Eclipse gives me this error:
Packet for query is too large (4739923 > 1048576). You can change this value on the server by setting the max_allowed_packet' variable.
So, first: this query is really so big? -.- after: which commands do I have to wrtite in the ssh? It' the first time I due with this things! thanks in advance!
I don't have root privileges on the server!
I tried using this:
mysql>set global max_allowed_packet=32*1024*1024;
but it gives me this error: ERROR 1227 (42000): Access denied; you need the SUPER privilege for this operation
EDIT
Now I have modified the max_allowed_packet variable to 32MB. Stopped and restarted the server But eclipse gives me the same error!
What can I do?
See Question&Answers more detail:os