数据库
首页 > 数据库> > mysql中 Load data infile 功能

mysql中 Load data infile 功能

作者:互联网

查看功能是否打开
mysql> show global variables like 'local_infile';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| local_infile  | OFF   |
+---------------+-------+
1 row in set (0.00 sec)

mysql> set global local_infile=1;
Query OK, 0 rows affected (0.00 sec)

mysql> show global variables like 'local_infile';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| local_infile  | ON    |
+---------------+-------+
1 row in set (0.00 sec)

标签:Load,set,data,global,mysql,+---------------+-------+,local,infile
来源: https://www.cnblogs.com/conpi/p/16657183.html