MySql教程

mysql8 load data报错

本文主要是介绍mysql8 load data报错,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

首先在执行load data命令时候出现了,Loading local data is disabled; this must be enabled on both the client and server sides
 需要在server端设置set local_infile=1

并且在客户端连接时候设置mysql --local-infile=1 -uroot -p

The MySQL server is running with the --secure-file-priv option so it cannot execute this statement

已经安装好的mysql目录下已经有mysql.ini文件,需要新建my.ini文件,并新增

[mysqld]
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M

# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
secure-file-priv=


 

这篇关于mysql8 load data报错的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!