- 论坛徽章:
- 0
|
本帖最后由 illiteracyzx 于 2017-04-14 11:06 编辑
请问下高手,为什么5.5下,local_infile默认已经是ON,但是 执行load data local infile时,提示ERROR 1148 (42000): The used command is not allowed with this MySQL version
但是,mysql --local-infile -uroot -p 后,就可以load data local infile了
############
root@host:~# mysql -uroot -p111111
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 30
Server version: 5.5.22-0ubuntu1-log (Ubuntu)
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show variables like 'local_infile';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| local_infile | ON |
+---------------+-------+
1 row in set (0.00 sec)
mysql> load data local infile '/root/111' into table db.table fields terminated by ',' lines terminated by ';\n' (id,time);
ERROR 1148 (42000): The used command is not allowed with this MySQL version
############
谢谢了。。
|
|