您的位置:首页 > 数据库 > MySQL

Ubuntu使用mysql添加数据异常解决办法

2017-07-23 19:22 579 查看
使用语句mysql> load data local infile '/home/hadoop/tmpdata/employees.tsv' into table employees fields terminated by '\t' lines terminated by '\n';

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

解决办法1:在/etc/mysql/mycnf  中,添加一句local-infile=1,重启mysql服务  sudo restart mysql

解决办法2:退出,重新进入 mysql --local-infile=1 -u username -p
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐