Not being able to use the "Source" command


I have set up the files:

  • test1.sql
  • test2.sql
  • setupproject3.sql
    and can’t use the Souce command at the mysql prompt to process them and get this message:
    mysql> source setupproject3.sql
    Failed to open file ‘setupproject3.sql’, error: 2

Can anyone assist please!


My two ideas might be that you are not in that directory, or those files don’t have read permissions for Others.


Thank you Alexandr. I got it sorted out. Was not in directory. Was not explained thoroughly. But that’s ok were are all human

Joseph C. Du Bois