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
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
相关文章推荐
- ubuntu上在使用c/c++连接mysql时,出现undefined reference错误解决办法
- Ubuntu下无法使用root登录Mysql的解决办法
- Linq2Sql数据实体外部更新时“不能添加其键已在使用中的实体”的解决办法
- 使用hql使用order by子句出现异常和数据异常的解决办法org.hibernate.hql.internal.ast.QuerySyntaxException
- 针对使用Myeclipse进行JDBC链接MySQL时添加中文数据出现?的解决方法!
- 使用mysql命令窗口查看中文数据乱码的解决办法
- 使用hibernate与mysql时数据不能插入的原因及解决办法
- Entity Framework EF6使用 MySql创建数据库异常解决办法
- MySQL中数据备份或转移后出现“使用中”和"doesn’t exist"解决办法
- C#:使用ListView动态添加数据一直闪烁的解决办法
- Ubuntu上使用jsp去连接mysql的时候踢提示Access denied for user 'root'@'localhost' (using password: YES)的解决办法!!!
- ubuntu使用命令mongoimport插入大批量json数据到mongodb时,遇到转义字符出错解决办法
- 使用sqoop将数据从hdfs中导入mysql时,卡在INFO mapreduce.Job: map 100% reduce 0%的解决办法
- JS中使用for循环添加点击事件时,获取i值及参数异常原因及解决办法
- 使用mysql命令窗口查看中文数据乱码的解决办法
- Mysql 使用ibd数据文件进行数据恢复 (以及数据移动) 1067的解决办法
- Ubuntu7.04使用totem-xine,安装libxine1-ffmpeg后,rm文件播放无声问题的解决办法
- Ubuntu7.04使用totem-xine,安装libxine1-ffmpeg后,rm文件播放无声问题的解决办法
- .Net中使用com组件后发生System.ArithmeticException异常的解决办法
- Ubuntu7.04使用totem-xine,安装libxine1-ffmpeg后,rm文件播放无声问题的解决办法