вот 2 запроса на добавление:
LOAD DATA INFILE '/Users/denislysenko/Desktop/project/coherent-training-denis-lysenko/homework3/files/movies.csv'
INTO TABLE movies
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\r\n'
IGNORE 1 LINES
(movieID, title, genres)
SET movieYear = SUBSTR(REGEXP_SUBSTR(title, '[(|-][0-9]{4}[)]'), 2, 4),
title = IF(title REGEXP('[(|-][0-9]{4}[)]'), SUBSTR(title, 1, LENGTH(title)-6), title);
LOAD DATA INFILE '/Users/denislysenko/Desktop/project/coherent-training-denis-lysenko/homework3/files/ratings.csv'
INTO TABLE rating
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\r\n'
IGNORE 1 LINES
(@str, movieID, rating, @str1)
выскакивает эта ошибка:
Error Code: 13. Can't get stat of '/Users/denislysenko/Desktop/project/coherent-training-denis-lysenko/homework3/files/movies.csv' (OS errno 13 - Permission denied)
Как убрать эту ошибку?