1

I have mysql running, I've switched to my database using:

use myDb;

now I'm trying to run a sql script located on my desktop using the following:

source /Users/abdul/Desktop/mySql.sql;

but I keep getting this error:

Failed to open file '/Users/abdul/Desktop/mySql.sql;', error: 2

not sure what I'm doing wrong, I've been researching and everything says to do it the way I did it.

1
  • Error 2 is "No such file or directory." Check your spelling, capitalization, and then verify that the account running mysqld has access to the file in question. Try putting the file in your Public or Shared folder, for example. Commented Jul 6, 2015 at 20:22

1 Answer 1

1

Error 2 stands for "No such file or directory". Try checking for any spelling errors in the file. Also make sure MySQL has access to the file in that location.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.