ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot exec
2018-03-20 11:23
771 查看
执行从txt中导入数据到mysql表中:
ERROR 1290 (HY000): The MySQL server is running with the –secure-file-priv option so it cannot execute this statement
解决:
方法一:
show variables like ‘%secure%’;查看 secure-file-priv 当前的值是什么
这个就是咯,把txt文件复制到这个目录下
方法二:修改配置文件:
ERROR 1290 (HY000): The MySQL server is running with the –secure-file-priv option so it cannot execute this statement
解决:
方法一:
show variables like ‘%secure%’;查看 secure-file-priv 当前的值是什么
show variables like '%secure%' mysql> show variables like '%secure%; +--------------------------+-----------------------+ | Variable_name | Value | +--------------------------+-----------------------+ | require_secure_transport | OFF | | secure_auth | ON | | secure_file_priv | /var/lib/mysql-files/ | +--------------------------+-----------------------+ 3 rows in set (0.01 sec)
/var/lib/mysql-files/
这个就是咯,把txt文件复制到这个目录下
方法二:修改配置文件:
相关文章推荐
- ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot exec
- ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot exec
- ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot exec
- ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot exec
- ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot exec
- ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
- ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it ...statemet
- mysqldump: Got error: 1290: The MySQL server is running with the --secure-file-priv option so it can
- [Error Code: 1290. The MySQL server is running with the --secure-file-priv option so it cannot execute this statement]错误解决
- mysql 导出数据到文件 ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so
- 数据库权限The MySQL server is running with the --secure-file-priv option so it cannot execute this
- The MySQL server is running with the --secure-file-priv option so it cannot execute this statement解决
- ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot exe
- ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot exe
- MYSQL导出数据出现The MySQL server is running with the --secure-file-priv option so it cannot execute this
- MYSQL 5.7报错 Error Code: 1290. The MySQL server is running with the --secure-file-priv option so it..
- ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot exe
- ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot exe
- ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot exe
- ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statemen