Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMatt Nickolls
9,895 PointsCant open database.sql on MacTerminal
Hi all
I am having difficulty getting the database file to open via the terminal. I keep getting the following message:
matthewnickolls@Matthews-MacBook-Pro ~ % /Users/matthewnickolls/Desktop/integrating_php_with_databases_s1v1/database.sql zsh: permission denied: /Users/matthewnickolls/Desktop/integrating_php_with_databases_s1v1/database.sql matthewnickolls@Matthews-MacBook-Pro ~ %
I am running it on Catalina 10.15.4.
Presumably I need to enter my admin password but I am not getting a prompt from the terminal to do that. Anyone have any ideas?
Matt Nickolls
9,895 PointsMatt Nickolls
9,895 PointsOk so I have got one step further by trying to open it with a preceding 'sudo' but now I am getting this response:
(base) Matthews-MacBook-Pro:~ matthewnickolls$ sudo /Users/matthewnickolls/Desktop/integrating_php_with_databases_s1v1/database.sql Password: sudo: /Users/matthewnickolls/Desktop/integrating_php_with_databases_s1v1/database.sql: command not found (base) Matthews-MacBook-Pro:~ matthewnickolls$