MySQL 5.7向表匯入資料包錯"ERROR 13 (HY000): Can't get stat of"
MySQL 5.7向表匯入資料時報錯:
mysql> load data infile '/var/lib/mysql-files/ADDSubscribers_MSISDN.txt' into table tmp_Subscribers_01 fields enclosed by '"';
ERROR 13 (HY000): Can't get stat of '/var/lib/mysql-files/ADDSubscribers_MSISDN.txt' (Errcode: 13 - Permission denied)
mysql> load data infile '/var/lib/mysql-files/ADDSubscribers_MSISDN.txt' into table tmp_Subscribers_01 fields enclosed by '"';
ERROR 13 (HY000): Can't get stat of '/var/lib/mysql-files/ADDSubscribers_MSISDN.txt' (Errcode: 13 - Permission denied)
解決方法:
在load語句中加上local引數
mysql> load data local infile '/tmp/ADDSubscribers_MSISDN.txt' into table tmp_Subscribers_01 fields enclosed by '"';
Query OK, 0 rows affected, 10 warnings (0.00 sec)
Records: 10 Deleted: 0 Skipped: 10 Warnings: 10
在load語句中加上local引數
mysql> load data local infile '/tmp/ADDSubscribers_MSISDN.txt' into table tmp_Subscribers_01 fields enclosed by '"';
Query OK, 0 rows affected, 10 warnings (0.00 sec)
Records: 10 Deleted: 0 Skipped: 10 Warnings: 10
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26506993/viewspace-2123761/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- linux下連線mysql報錯ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysqLinuxMySqlErrorServer
- 【MySQL】ERROR 1290 (HY000): --secure-file-priv--匯出報錯MySqlError
- MySQL 5.7 建立使用者報錯 ERROR 1805 (HY000): Column count of mysql.user is wrongMySqlError
- MySQL報錯Table 'plugin' is read only [ERROR] Can't open the mysql.plugin table.MySqlPluginError
- Mysql連線錯誤ERROR 2003 (HY000)MySqlError
- MySQL5.7叢集(MGR)啟動報ERROR 3092 (HY000)MySqlError
- GTID複製報錯處理:Last_Error: Error 'Can't drop database 'test';ASTErrorDatabase
- MySQL報錯ERROR 2013 (HY000): Lost connection to MySQL server during queryMySqlErrorServer
- multiprocessing pool AttributeError: Can't get attribute 'func'Error
- mysql匯入sql檔案報錯 ERROR 2013 2006 2002MySqlError
- MySQL 報錯 ERROR 1290 (HY000): running with the --secure-file-privMySqlError
- MYSQL報1022錯誤:Can't write;duplicate key in table '.....'MySql
- 資料庫 MySQL 資料匯入匯出資料庫MySql
- ERROR 1290 (HY000): The MySQL server is running withErrorMySqlServer
- 阿里雲mysql遠端登入報ERROR 2027(HY000)阿里MySqlError
- MySQL 5.7 datetime和timestamp欄位設定default 0 插入資料包錯MySql
- Mysql 大資料表 資料匯入到SqlServer 中的方法MySql大資料Server
- Mysql資料庫使用Navicat Mysql匯入sql檔案報錯MySql資料庫
- MySQL入門--匯出和匯入資料MySql
- MySQ匯出資料包錯Error 2020: Got packet bigger than 'max_allowed_packet'ErrorGo
- MySQL資料的匯入MySql
- MySQL 2003 - Can’t connect to MySQL server on (10060)MySqlServer
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock錯誤MySqlServer
- Excel 表匯入資料Excel
- mysql 5.6.25報錯ERROR 1372 (HY000): Password hash 的一點思考MySqlError
- MYSQL5.7.22全庫備份匯入MYSQL8.0.20報錯ERROR3554MySqlError
- Error:Can't connect to SOCKS proxy:Connection refused (Connection refused)Error
- Mysql 資料庫匯入與匯出MySql資料庫
- Centos7-mysql執行報錯ERROR1820(HY000):YoumustresetyourpasswordusingALTERUSERstatementbeforeexecutingthisstatement.CentOSMySqlError
- python匯入資料錯誤:ParserError: Error tokenizing data. C error: Expected 1 fields in line 3, saw 2PythonError
- mysql 啟動錯誤(InnoDB: Operating system error number 13 )MySqlError
- [ERROR] mysqld: Can‘t open shared library ‘/usr/local/mysql/lib/plugin/validate_password.so‘ (errno:ErrorMySqlPlugin
- Can't Connect to MySQL Server on IP Address (10061) 錯誤的解決方案MySqlServer
- mysql 啟動報錯Can't connect to local MySQL server through socket '/data/mysql/mysql/mysql.sock'(111)MySqlServer
- Oracle用資料泵匯入資料包12899的錯誤碼解決方法Oracle
- Fatal error: can't check configuration file '/home/watt/proxy/dError
- 解決ERROR 1231 (42000): Variable 'time_zone' can'tError
- eslint --fix 報錯 can't not find modulesEsLint
- ClickHouse 資料表匯出和匯入(qbit)