Home > Database > Mysql Tutorial > 关于MYSQL LOAD DATA LOCAL INFILE支持问题_MySQL

关于MYSQL LOAD DATA LOCAL INFILE支持问题_MySQL

WBOY
Release: 2016-06-01 13:40:43
Original
1545 people have browsed it

bitsCN.com
关于MYSQL LOAD DATA LOCAL INFILE支持问题 1.执行报错:ERROR 1148 (42000): The used command is not allowed with this MySQL version解决方法: 先进入MYSQL检查一下版本号:5.1或者以上的都支持。mysql> select version() 1.由于MYSQL编译安装时默认不允许执行这个命令。1)安装时加上 --enable-local-infile 参数就可以了执行了。./configure --prefix=/usr/local/mysql --enable-local-infilemake    make install 2.可以在执行命中加上--local-infile=1 参数即可解决。如:/usr/local/mysql/bin/mysql -uroot -h192.168.0.2 -proot databaseName --local-infile=1 -e "LOAD DATA LOCAL INFILE 'data.txt' into table test(name,sex) " bitsCN.com

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template