热线电话:13121318867

登录
2020-12-02 阅读量: 1044
mysql报错:ERROR 1148 (42000)

问:

当上传本地文件到mysql服务器,执行语句:load data local infile “c:/test.txt” into table test(test);

mysql报错:ERROR 1148 (42000): The used command is not allowed with this MySQL version



答:

原因是mysql版本不支持,检查一下mysql版本号:mysql> select version();
mysql5.1或者以上的都支持load data local infile操作


登录时加 --local-infile 可解决问题

mysql --local-infile -u test -p


46.1538
1
关注作者
收藏
评论(1)

发表评论
hah7
2022-05-06

在哪里登录 时加--local-infile

0.0000 0 0 回复
推荐帖子
条评论