MySQL Workbench Error Code 29: (Errcode13 -Permission denied)

15,924

If your file is local to your client machine then you need to include 'local' i.e.

load data local infile 'D:/Users/alpha/Documents/Excel/fin.txt' into table alpha.raw_finance_data FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n';
Share:
15,924
Tokunbo Hiamang
Author by

Tokunbo Hiamang

No one knows it all. You are either trying to figure it out or wasting your time.

Updated on June 08, 2022

Comments

  • Tokunbo Hiamang
    Tokunbo Hiamang almost 2 years

    Can anyone please let me know why I keep getting a permission denied error even though I am logged in as the admin? I am trying to load a text file into a table in mysql workbench.

    use alpha;  
    drop table raw_finance_data;  
    create table raw_finance_data 
    (  
        Company         varchar(256),  
        Profit_Center   varchar(256),  
        Year            varchar(256),  
        Scenario        varchar(256),  
        Account         varchar(256),  
        total           float  
    );  
    
    load data infile 'D:/Users/alpha/Documents/Excel/fin.txt' into table alpha.raw_finance_data FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n';  
    

    I keep getting the error below. I am in the database as the admin.

    Error Code: 29. File 'D:\Users\alpha\Documents\Excel\fin.txt' not found (Errcode: 13 - Permission denied)
    
  • Martin Wilson
    Martin Wilson about 10 years
    Great! If it fully answers your question then click the tick to accept it. See meta.stackexchange.com/questions/5234/…