Need Help?

Our experts will login to your server within 30 minutes to fix urgent issues.

We will keep your servers stable, secure and fast at all times for one fixed price.

Call Us! 1-800-383-5193
Call Us! 1-800-383-5193

Need Help?

Our experts will login to your server within 30 minutes to fix urgent issues.

We will keep your servers stable, secure and fast at all times for one fixed price.

MySQL 8.0 Error 1148 – How we troubleshoot it?

Are you stuck with MySQL 8.0 Error 1148? We can help you fix it.

The MySQL Error 1148 occurs while importing data to MySQL version 8.0 and the higher versions.

At Bobcares, we often receive requests to fix MySQL errors as a part of our Server Management Services.

Today, let’s see how our Support Engineers fix the MySQL error 1148 for our customers.

 

Why does MySQL Error 1148 occur?

The MySQL Error 1148: ‘The used command is not allowed with this MySQL version’ occur while importing data to the latest MySQL 8.0 version.

It happens in most of the cases if the migration process is running on a different machine where the MySQL server is running. Here the data is loaded from a file located on the client-side.

By default, the MySQL versions 8.0 and higher don’t allow us to load data from the client-side.

The local-infile is a server variable and the MySQL error 1148 occurs when this variable is set to false or zero.

 

How to fix MySQL Error 1148?

Recently one of our customers contacted us with the MySQL 8.0 Error 1148. Now let’s discuss how our Support Engineers fix the MySQL error it for our customer.

MySQL 8.0 Error 1148

To solve this problem we set the  MySQL server variable local-infile to OFF in the latest and 8.0 versions. Otherwise, we use the option ‘Enable Local Load’ in the SQLWays Wizard tool.

  • To enable the option we click the Advanced button on Choose a Target Database page.
  • Then we check the option Enable Local Load.

The local-file option should enable on both the client and the server. To enable it for files on the server-side, we add the below command in my.cnf configuration file.

loose-local-infile = 1

We verify it by executing,

SHOW VARIABLES LIKE 'local_infile';

If we have super privileges, we execute the following command on the server.

SET GLOBAL local_infile = 1;

This fixes the MySQL Error 1148.

[Need more assistance to fix the MySQL Error 1148?- We’re available 24/7.]

 

Conclusion

In short, we’ve discussed the cause of the MySQL error 1148 in the latest MySQL version 8.0. Also, we’ve discussed how our Support Engineers fix this error for our customers.


PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

mysql

Submit a Comment

Your email address will not be published. Required fields are marked *

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF