2019-02-27
阅读量:
568
mysql ERROR 1148错误
当上传本地文件到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






评论(0)


暂无数据