com.mysql.jdbc.PacketTooBigException

前端 未结 9 1216
别那么骄傲
别那么骄傲 2020-11-30 13:08

I have a big problem! when I do this:

 String query = \"SELECT * FROM utente WHERE confermato=1 and Username=\'\" + username
            + \"\' AND Password         


        
9条回答
  •  旧时难觅i
    2020-11-30 13:51

    Edit your my.cnf(ubunut) or my.ini(windows) file and set max_allowed_packet size.

    max_allowed_packet=512M

    Then restart your mysql server.It will work

提交回复
热议问题