• Home
  • Cloud VPS
    • Hong Kong VPS
    • US VPS
  • Dedicated Servers
    • Hong Kong Servers
    • US Servers
    • Singapore Servers
    • Japan Servers
  • Company
    • Contact Us
    • Blog
logo logo
  • Home
  • Cloud VPS
    • Hong Kong VPS
    • US VPS
  • Dedicated Servers
    • Hong Kong Servers
    • US Servers
    • Singapore Servers
    • Japan Servers
  • Company
    • Contact Us
    • Blog
ENEN
  • 简体简体
  • 繁體繁體
Client Area

How to Fix MySQL Error 1087 – SQLSTATE: HY000 (ER_LOAD_INFO) Records: %ld Deleted: %ld Skipped: %ld Warnings: %ld

December 20, 2023

How to Fix MySQL Error 1087 – SQLSTATE: HY000 (ER_LOAD_INFO) Records: %ld Deleted: %ld Skipped: %ld Warnings: %ld

MySQL is a popular open-source relational database management system used by many websites and applications. However, like any software, it can encounter errors that can disrupt its normal operation. One such error is MySQL Error 1087 – SQLSTATE: HY000 (ER_LOAD_INFO) Records: %ld Deleted: %ld Skipped: %ld Warnings: %ld. In this article, we will explore the causes of this error and provide solutions to fix it.

Understanding MySQL Error 1087

MySQL Error 1087 is related to the LOAD DATA INFILE statement, which is used to import data from a file into a MySQL table. The error message contains information about the number of records deleted, skipped, and any warnings encountered during the import process.

The error message may look like this:

ERROR 1087 (HY000): Records: 1000 Deleted: 500 Skipped: 100 Warnings: 10

This error typically occurs when there are issues with the file being imported or when the MySQL server encounters problems during the import process.

Possible Causes of MySQL Error 1087

There are several potential causes for MySQL Error 1087:

  • File Permissions: Ensure that the file being imported has the correct permissions for the MySQL server to access it.
  • File Format: Verify that the file format is compatible with MySQL. Common formats include CSV, TSV, and SQL.
  • File Encoding: Check that the file encoding matches the encoding expected by the MySQL server.
  • File Size: Large files may exceed the server’s maximum allowed packet size. Adjust the server’s configuration if necessary.
  • Data Validation: The data in the file may contain errors or inconsistencies that cause the import process to fail. Validate the data before importing.

Fixing MySQL Error 1087

To fix MySQL Error 1087, follow these steps:

  1. Check file permissions: Ensure that the file being imported has the correct permissions for the MySQL server to access it. Use the chmod command to adjust the permissions if necessary.
  2. Verify file format: Confirm that the file format is compatible with MySQL. If not, convert the file to a supported format using a text editor or a dedicated file conversion tool.
  3. Check file encoding: Use a text editor or a command-line tool to check the file’s encoding. If it doesn’t match the expected encoding, convert it to the correct encoding.
  4. Split large files: If the file size exceeds the server’s maximum allowed packet size, split the file into smaller chunks and import them separately.
  5. Validate data: Before importing, validate the data in the file to ensure it is free of errors and inconsistencies. Use data validation tools or scripts to identify and fix any issues.

By following these steps, you should be able to resolve MySQL Error 1087 and successfully import your data into the MySQL database.

Summary

In conclusion, MySQL Error 1087 – SQLSTATE: HY000 (ER_LOAD_INFO) Records: %ld Deleted: %ld Skipped: %ld Warnings: %ld is a common error that occurs during the import process using the LOAD DATA INFILE statement. It can be caused by file permissions, file format, file encoding, file size, or data validation issues. By checking and adjusting these factors, you can fix the error and successfully import your data into MySQL.

If you are experiencing MySQL Error 1087 or need assistance with VPS hosting, consider Server.HK. With their reliable and high-performance VPS solutions, you can ensure smooth database operations and efficient data management.

Recent Posts

  • Hong Kong VPS Security Checklist: 10 Steps to Harden Your Server in 2026
  • NVMe SSD vs SATA SSD for VPS Hosting: Does Storage Type Really Matter?
  • Hong Kong VPS Docker Setup: Run Containers with Full Root Access
  • How to Set Up a Game Server on Hong Kong VPS: Low-Latency Gaming for Asia
  • How to Deploy a Node.js Application on Hong Kong VPS: Complete Guide

Recent Comments

  1. ivermectina tabletas on Top 5 Use Cases for a Hong Kong Dedicated Server in 2026
  2. hello world on Top 5 Use Cases for a Hong Kong Dedicated Server in 2026

Knowledge Base

Access detailed guides, tutorials, and resources.

Live Chat

Get instant help 24/7 from our support team.

Send Ticket

Our team typically responds within 10 minutes.

logo
Alipay Cc-paypal Cc-stripe Cc-visa Cc-mastercard Bitcoin
Cloud VPS
  • Hong Kong VPS
  • US VPS
Dedicated Servers
  • Hong Kong Servers
  • US Servers
  • Singapore Servers
  • Japan Servers
More
  • Contact Us
  • Blog
  • Legal
© 2026 Server.HK | Hosting Limited, Hong Kong | Company Registration No. 77008912
Telegram
Telegram @ServerHKBot