max-allowed-packet

Packet for query to large. Setting max_allowed_packet

我与影子孤独终老i 提交于 2020-04-07 08:08:08
问题 When i connect to my databse via phpmyadmin everything works fine and it shows me the data. When i am on my server i can see all data and work with it. But when i try to connect to my server i'm getting this error: com.mysql.cj.jdbc.exceptions.PacketTooBigException: Packet for query is too large (4.739.923 > 65.535). You can change this value on the server by setting the 'max_allowed_packet' variable. im getting the max allowed packet size here: Database changed MariaDB [selforder]> SELECT @

My sql: PacketTooBigException: Packet for query is too large (4,739,923 > 65,535)

坚强是说给别人听的谎言 提交于 2019-12-11 15:08:38
问题 I am trying to connect to a database on my raspbery pi . I have mysql downloaded on the pi and have created a database on there already. I am trying to use driver manager to connect. Here is my code for it: public static void main(String[] args) { try { String host = "jdbc:mysql://scheduleit.duckdns.org:99/scheduleit"; String uName = username; String uPass = password; Connection con = DriverManager.getConnection(host, uName, uPass); } catch (SQLException e) { e.printStackTrace(); } } I have

MySQL Error 1153 - Got a packet bigger than 'max_allowed_packet' bytes

淺唱寂寞╮ 提交于 2019-11-26 01:46:11
问题 I\'m importing a MySQL dump and getting the following error. $ mysql foo < foo.sql ERROR 1153 (08S01) at line 96: Got a packet bigger than \'max_allowed_packet\' bytes Apparently there are attachments in the database, which makes for very large inserts. This is on my local machine, a Mac with MySQL 5 installed from the MySQL package. Where do I change max_allowed_packet to be able to import the dump? Is there anything else I should set? Just running mysql --max_allowed_packet=32M … resulted

MySQL Error 1153 - Got a packet bigger than &#39;max_allowed_packet&#39; bytes

独自空忆成欢 提交于 2019-11-25 20:08:15
I'm importing a MySQL dump and getting the following error. $ mysql foo < foo.sql ERROR 1153 (08S01) at line 96: Got a packet bigger than 'max_allowed_packet' bytes Apparently there are attachments in the database, which makes for very large inserts. This is on my local machine, a Mac with MySQL 5 installed from the MySQL package. Where do I change max_allowed_packet to be able to import the dump? Is there anything else I should set? Just running mysql --max_allowed_packet=32M … resulted in the same error. Michael Pryor You probably have to change it for both the client (you are running to do