Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

max_allowed_packet #84

Open
speed opened this issue Jun 29, 2017 · 1 comment
Open

max_allowed_packet #84

speed opened this issue Jun 29, 2017 · 1 comment
Labels

Comments

@speed
Copy link
Owner

speed commented Jun 29, 2017

2017-06-28 09:48:59,005--ERROR --Save data failure, url:https://www.pornhub.com/view_video.php?viewkey=ph56c925e408be4, log:javax.jdo.JDODataStoreException: Insert of object "com.soso.crawler.model.Crawler_CrawlDataTable@58a70d1" using statement "INSERT INTO CRAWLER_CRAWLDATATABLE (FETCHTIMES,SITEID,DEPLOYLOG,STATUS,MD5DIGEST,CRAWLURL,CRAWLURLID,ORDERINDEX,CHECKLOG,CREATEDATE,DATA,MD5DIGESTHASH) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)" failed : Packet for query is too large (1764526 > 1048576). You can change this value on the server by setting the max_allowed_packet' variable.
NestedThrowables:
com.mysql.jdbc.PacketTooBigException: Packet for query is too large (1764526 > 1048576). You can change this value on the server by setting the max_allowed_packet' variable.

@speed speed added the bug label Jun 29, 2017
@speed
Copy link
Owner Author

speed commented Jun 29, 2017

mysql -hlocalhost -uroot -p
show variables like 'max_allowed_packet'

#change to 5M
/etc/my.cnf for MySQL instance, or /etc/my.cnf.d/server.cnf for MariaDB
[mysqld]
max_allowed_packet=5M

restart mysql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant