MySql教程

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)
这篇关于mysql中 Load data infile 功能的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!