logo
search
Data Import & Export

How to Fix Error Code 1130 When Importing Excel Data into Database

Huda QurayshiHuda Qurayshi Oct 19, 2026 868 views

Question details

The user needs to resolve an authorization connection error that blocks the import of an Excel table into a database server.

How to Fix Error Code 1130 When Importing Excel Data into Database
Product
Excel, SQL Server, MySQL
Device & OS
not provided
Scenario
Importing a large Excel table into a destination database server (like SQL Server or MySQL) using the Import and Export Wizard.
Observed behavior
The system throws Error Code 1130, indicating that the connection host is not authorized or allowed to connect to the database server.
Before you start

Ensure you have administrative privileges to both your local machine and the destination database server (SQL Server or MySQL) to modify connection permissions and firewall settings.

Solution 1Recommended

Grant Host Connection Permissions on the Database Server

Use this solution to ensure your specific user account is authorized to connect to the database from your client computer's IP address, which is the most common cause of Error 1130.

Error 1130 frequently originates from MySQL policies that reject remote connections from unauthorized IP addresses. You must explicitly grant access to the host machine attempting the import.

1
Verify Login Credentials

Open your Import and Export Wizard and double-check the destination server name, database name, authentication method, username, and password.

2
Update MySQL Permissions

If using MySQL, log into your database via the command line or Workbench as root. Execute a GRANT statement to allow your user to connect from the client IP (e.g., GRANT ALL PRIVILEGES ON *.* TO 'username'@'client_ip' IDENTIFIED BY 'password'). Flush privileges afterward.

3
Configure SQL Server Authentication

If using SQL Server, open SQL Server Management Studio (SSMS). Right-click the server, go to Properties > Security, and ensure 'SQL Server and Windows Authentication mode' is selected.

4
Test the Connection

Use a standard database client to test the connection independently from the client machine before retrying the Excel import wizard.

Grant Host Connection Permissions on the Database Server
Identify the Exact Server: Read the exact error text carefully. The Import and Export Wizard can connect to various databases, and Error 1130 is strictly a server-side rejection, mostly associated with MySQL.
Free Microsoft Office alternative

Prepare and Manage Data Seamlessly with WPS Spreadsheet

While resolving complex server connectivity errors, you can use WPS Office to easily manage, clean, and export your spreadsheet data into universally supported formats like CSV, simplifying your database import processes.

100% format compatibility with Microsoft Excel (.xlsx, .xls) and standard CSV filesLightweight architecture handles large datasets smoothly without laggingFree to use with a familiar, intuitive interface for instant productivityCross-platform support allows you to prepare data on Windows, Mac, or Linux
microsoft office alternative - wps office

Frequently Asked Questions

What exactly does Error Code 1130 mean?

Error Code 1130 means 'Host is not allowed to connect to this server'. It is a server-side security rejection indicating that the IP address of the computer attempting the connection does not have the necessary privileges granted in the database.

Why does Error 1130 appear when importing Excel data?

The Import and Export wizard acts as a client connecting to your destination database. If your machine's IP is not whitelisted or authorized by the database server (especially MySQL), the connection will be blocked before any Excel data can be transferred.

Does exporting my Excel file to CSV help bypass this error?

Exporting to CSV bypasses Excel-specific driver issues (like architecture mismatches), which can simplify the import process. However, you must still fix the underlying Error 1130 by granting your IP address permission to connect to the database server.

How do I check if my database service is currently running?

Press Win + R, type 'services.msc', and press Enter. Scroll down to find the service named 'SQL Server' or 'MySQL'. Check the 'Status' column to ensure it reads 'Running'.