Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Previous revision
knowledge-base:database-migration:setup-and-troubleshooting:mysql:error-1148 [2019/07/25 08:12]
knowledge-base:database-migration:setup-and-troubleshooting:mysql:error-1148 [2023/12/07 10:53] (current)
vladimir.gribok
Line 1: Line 1:
 +\\
 +[[https://​www.ispirer.com|Ispirer Website]]
 +[[https://​www.ispirer.com/​products/​mysql-migration|Ispirer Capabilities:​ MySQL Migration]]
 +[[https://​www.ispirer.com/​download/​download-demo|Free Trial]]
 +====== ERROR 1148 (42000): The Used Command is Not Allowed with this MySQL Version ======
  
 +=== Error Description ===
 +
 +While importing data to MySQL version 8.0.2 and higher, an error "ERROR 1148 (42000): The used command is not allowed with this MySQL version"​ may occur. ​
 +
 +**Cause**
 +
 +Ispirer SQLWays Wizard tool performs data import using a mysql.exe utility and loads data from the file, which was generated by the tool on the same machine where you run the conversion. However, if you are running the migration process on the machine different from the one where your MySQL server is running, it means that you're trying to load data from a file located on a client side. Please take into account that MySQL versions 8.0.2 and higher doesn'​t allow to load data from a client side by default. This setting is controlled by MySQL system variable "​local-infile",​ which is set to "​OFF"​ in the latest versions:
 +^  MySQL Version ​ ^ Default Value  ^ 
 +| **>= 8.0.2** | OFF |
 +| **<= 8.0.1** | ON |
 +
 +**Solutions**
 +
 +In order to resolve this problem, all you need is to set this option to "​ON"​ in MySQL Server. Otherwise you can use the option "​Enable Local Load" in SQLWays Wizard tool. It will add an option "​local-infile"​ in a command line that makes data load to MySQL database. ​
 +
 +Please click the "​Advanced"​ button on a"​Target Options"​ page:
 +
 +{{:​knowledge-base:​database-migration:​setup-and-troubleshooting:​mysql:​mysql_1148_error_1.jpg?​nolink|}}
 +
 +\\
 +
 +And then check the option "​Enable Local Load":
 +
 +{{:​knowledge-base:​database-migration:​setup-and-troubleshooting:​mysql:​mysql_1148_error_2.jpg?​nolink|}}
 +
 +__**Please, note:**__
 +
 +Both client and server should enable the local-file option. Otherwise it will not work. To enable it for files on the server side, add the following to the my.cnf configuration file:
 +
 +   ​loose-local-infile = 1
 +   
 +Or if you have SUPER privileges, you can execute the following command on the server:
 +
 +   SET GLOBAL local_infile = 1;
 +
 +More information about "​loose-local-infile"​ option can be found here: __**[[https://​dev.mysql.com/​doc/​refman/​8.0/​en/​load-data-local-security.html|Security Issues with LOAD DATA LOCAL]]**__
 +
 +__**Please, note:**__
 +
 +If you don't see the "​Advanced"​ button on this page, please switch the tool to the "​Expert Mode". If you don't know how to do it, please refer to this link: __**[[knowledge-base/​database-migration:​ispirer-toolkit-faq/​expert-mode|How to Use SQLWays in Expert Mode]]**__
 +\\
 +
 +If you have any other questions, please feel free to contact our support team: __**[[[email protected]]]**__