Title: mysql_send_long_data() when scanning
Last modified: January 19, 2023

---

# mysql_send_long_data() when scanning

 *  Resolved [smreka](https://wordpress.org/support/users/smreka/)
 * (@smreka)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/mysql_send_long_data-when-scanning/)
 * So whenever I do a scan I get this error after about 15 seconds. 
   Any idea what
   this is about?[JAN 19 04:08:28] Error finishing writing value for wfsd_engine(
   MySQLi error: [1105] Parameter of prepared statement which is set through mysql_send_long_data()
   is longer than ‘max_long_data_size’ bytes)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/mysql_send_long_data-when-scanning/#post-16400624)
 * Hi [@smreka](https://wordpress.org/support/users/smreka/),
 * I’ve not seen this before with Wordfence or its scans, but it could be an idea
   to try setting `max_long_data_size` to the same value as `max_allowed_packet`.
 * `max_long_data_size` was removed in MySQL 5.6 and just incorporated into `max_allowed_packet`,
   so it could be that the default value is too small. Alternatively, upgrading 
   MySQL to a newer version could be an option, but if you’re having problems setting
   the value then speaking with your administrator or hosting provider could help.
 * Thanks,
   Peter.
 *  Thread Starter [smreka](https://wordpress.org/support/users/smreka/)
 * (@smreka)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/mysql_send_long_data-when-scanning/#post-16400742)
 * I tried setting it to the max setting, didn’t help. But I think there must have
   been some issue with the Duplicator database restore procedure (I had to restore
   my site) because when I dropped the database and re imported manually it the 
   issue went away.
    -  This reply was modified 3 years, 4 months ago by [smreka](https://wordpress.org/support/users/smreka/).
    -  This reply was modified 3 years, 4 months ago by [smreka](https://wordpress.org/support/users/smreka/).
 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/mysql_send_long_data-when-scanning/#post-16422198)
 * That’s great news, I will keep restores or migrations in mind if this crops up
   again and I appreciate you for keeping us updated [@smreka](https://wordpress.org/support/users/smreka/).
 *  [neoxphuse](https://wordpress.org/support/users/neoxphuse/)
 * (@neoxphuse)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/mysql_send_long_data-when-scanning/#post-16926178)
 * Hi I am having this issue when scanning. I’m not an expert by any means. Can 
   you please tell me how to fix this step by step.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘mysql_send_long_data() when scanning’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [neoxphuse](https://wordpress.org/support/users/neoxphuse/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/mysql_send_long_data-when-scanning/#post-16926178)
 * Status: resolved