mysqldump: Got error: 1290: The MySQL server is running with the --secure-file-priv option so it can
来源:互联网 发布:又拍云存储 域名 编辑:程序博客网 时间:2024/06/08 10:24
mysqldump: [Warning] Using a password on the command line interface can be insecure.
Warning: A partial dump from a server that has GTIDs will by default include the GTIDs of all transactions, even those that changed suppressed parts of the database. If you don't want to restore GTIDs, pass --set-gtid-purged=OFF. To make a complete dump, pass --all-databases --triggers --routines --events.
SET @MYSQLDUMP_TEMP_LOG_BIN = @@SESSION.SQL_LOG_BIN;
SET @@SESSION.SQL_LOG_BIN= 0;
--
-- GTID state at the beginning of the backup
--
SET @@GLOBAL.GTID_PURGED='8b3a2bfc-5ff9-11e7-a6aa-080027f004fe:1-138';
mysqldump: Got error: 1290: The MySQL server is running with the --secure-file-priv option so it cannot execute this statement when executing 'SELECT INTO OUTFILE'
[root@mysqlcentos01 evis]#
查看参数--secure-file-priv
root@localhost [test]>show global variables like '%secure%';
+--------------------------+-------+
| Variable_name | Value |
+--------------------------+-------+
| require_secure_transport | OFF |
| secure_auth | ON |
| secure_file_priv | /tmp/ |
+--------------------------+-------+
3 rows in set (0.01 sec)
root@localhost [test]>
secure_file_priv的值为/tmp/ ,表示限制导入|导出只能发生在/tmp/目录下
修改参数:
[root@mysqlcentos01 evis]# mysqladmin -S /tmp/mysql3306.sock shutdown -p
Enter password:
[root@mysqlcentos01 evis]# vi /data/mysql/mysql3306/my3306.cnf
[mysqld]
#file
secure-file-priv=
[root@mysqlcentos01 evis]# mysqld --defaults-file=/data/mysql/mysql3306/my3306.cnf &
[1] 10179
[root@mysqlcentos01 evis]#
- mysqldump: Got error: 1290: The MySQL server is running with the --secure-file-priv option so it can
- 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 ...statemet
- ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot exec
- mysql 导出数据到文件 ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so
- ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option
- MYSQL导出数据出现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解决
- The MySQL server is running with the --secure-file-priv option so it cannot execute this statement解决
- Error Code: 1290. The MySQL server is running with the --secure-file-priv option
- mysql>导出数据为txt时报错:The MySQL server is running with the --secure-file-priv option so it cannot execut
- MySQL 报错Error Code: 1290. The MySQL server is running with the --secure-file-priv option
- MYSQL导出数据出现The MySQL server is running with the --secure-file-priv option
- Error Code: 1290. The MySQL server is running with the --secure-file-priv op
- Windows下MySQL导入csv文件ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv opti
- mysql导出表到CSV文件方法及提示错误[Err] 1290 - The MySQL server is running with the --secure-file-priv option解决办法
- MYSQL导入数据出现The MySQL server is running with the --secure-file-priv
- ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot exe
- HDU 6153 A Secret(扩展KMP算法)
- 浅析linux下的crond和crontab
- hdu_2187_水
- Eclipse上Maven环境配置使用 (全)
- ios 微信返回页面标题无更改更新
- mysqldump: Got error: 1290: The MySQL server is running with the --secure-file-priv option so it can
- linux下动态库so文件的一些认识
- springmvc源码扩展——自定义参数解析
- 《机器学习实战》学习笔记1
- POJ 1222 EXTENDED LIGHTS OUT
- android复制assets里的压缩文件到sdcard里并解压
- Groovy语法之闭包
- xxx cannot be resolved to a type
- js基本功—干货