tôi chạy
psql -E -U siteportal -d portal -h 172.19.242.32 -c "COPY externals (id,logo_path,favicon_path,cover_path,header,description,sign_enable,sign_text,footer_logo_enable,footer_logo_path,footer_text,created_at,updated_at) FROM '/Applications/MAMP/htdocs/code/site/portal/public/csv/externals.csv' DELIMITER ',' csv;"
tôi đã
ERROR: could not open file "/Applications/MAMP/htdocs/code/site/portal/public/csv/externals.csv" for reading: No such file or directory
Nhưng tôi biết chắc chắn các tập tin là có, becase khi tôi chạypsql xuất khẩu trở lại Không có tập tin hoặc thư mục như vậy khi tập tin tồn tại
cat /Applications/MAMP/htdocs/code/site/portal/public/csv/externals.csv
Tôi đã nhận
1,"/images/account/operator/logo.png","/images/account/operator/favicon.png","/images/account/operator/external.png","site Portal","Log in using your credentials",1,"This is a secure page",1,"/images/account/operator/footer_logo.png","© 2017 site Networks Inc.","2016-12-22 13:37:42","2017-01-31 14:22:11"
Có phải vì sự cho phép không?
[email protected] 1 site staff 307 May 24 13:46 externals.csv
Tôi thậm chí còn thử chomd 777
và chạy với sudo
. Nhưng dường như không có gì để giúp!
là selinux chặn truy cập tập tin? –