ERROR: Failed to open file error2 mac code example Example: ERROR: Failed to open file 'C:\Users\PuspakASharma\TEST.SQL', error: 2 In short, you got the path wrong.