load data infile ERROR 1045 (28000)
非root使用者在mysql server部署機器透過load data infile命令匯入資料時,
報錯:ERROR 1045 (28000): Access denied for user 'xxx'@'xxx' (using password: YES)
可能原因:這個一般是因為非root使用者沒有FILE Privilege,可以透過show grants檢視當前登陸使用者的許可權,也可以透過select mysql.user檢視某使用者的許可權,一般情況下,normal user是無FILE許可權的
解決辦法:
命令加local引數,用load data local infile 'filename' into table xxx.xxx來導資料
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20893244/viewspace-2151892/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ERROR 1045 (28000): ProxySQL Error: 報錯ErrorSQL
- ERROR 1045 (28000): Access denied for userError
- MySQL INTO OUTFILE和LOAD DATA INFILE用法MySql
- ERROR 1045 (28000): using password: YESError
- ERROR 1045 (28000): Access denied for user 'root'@'localhost'Errorlocalhost
- Error 1045(28000) Access Denied for user 'root'@'localhost'Errorlocalhost
- Mysql:ERROR 1045 (28000): Access denied for user 'root'@'localhost'MySqlErrorlocalhost
- mysql ERROR 1045 (28000): Access denied for user解決方法MySqlError
- Windows MySQL load data 命令中的infile 檔案目錄WindowsMySql
- 【轉貼】mysql匯入資料load data infile用法MySql
- 解決Mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost'MySqlErrorlocalhost
- MySQL 5.5使用LOAD DATA INFILE語句匯入資料MySql
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password:YES)Errorlocalhost
- 登入mysql報ERROR 1045 (28000): Access denied 解決方法MySqlError
- mysql登入報錯提示:ERROR 1045 (28000)的解決方法MySqlError
- 報錯”ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO)”Errorlocalhost
- ERROR 1045 (28000): Access denied for user 'root'@'127.0.0.1' (using password: YES)Error127.0.0.1
- rhel4 mysql5.1登陸ERROR 1045 (28000): Access denied for userMySqlError
- MySQL 登入資料庫報錯'ERROR 1045 (28000): Access denied for user'..'@'localhost''MySql資料庫Errorlocalhost
- Linux錯誤 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)LinuxErrorlocalhost
- 解決Mysql:ERROR 1045 (28000):Access denied for user ‘root‘@‘localhost‘ (using password: NO)的方法MySqlErrorlocalhost
- Mysql資料庫報ERROR 1045 (28000)報錯及MySQL忘記密碼找回MySql資料庫Error密碼
- MySQL 8.0.13 密碼問題 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)MySql密碼Errorlocalhost
- 關於mysql登入出現報錯資訊:ERROR1045(28000)的解決方法MySqlError
- mysqldump Got error: 1045MySqlGoError
- 關於MySQL中使用LOAD DATA INFILE匯入csv檔案時的日期格式問題MySql
- linux安裝MySQL出現ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)LinuxMySqlErrorlocalhost
- Mysql 5.5 原始碼安裝後建立使用者報錯"ERROR 1045 (28000): Access denied for user"MySql原始碼Error
- Java不寫檔案,LOAD DATA LOCAL INFILE大批量匯入資料到MySQL的實現JavaMySql
- 使用Mysql登入時,ERREORE 1045(28000) 解決方法MySql
- MySQL ERROR 1698 (28000) 錯誤MySqlError
- MySQL報錯 Error_code: 1045MySqlError
- mysql報關於使用者密碼1045(28000),幾種處理方法MySql密碼
- 測試mysql--load dataMySql
- MySQL load data載入資料MySql
- ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)Errorlocalhost
- mysql登入遇到ERROR 1045問題解決方法MySqlError
- 【MySQL】load data語句詳解(一)MySql