Assuming that you want to use the source command to execute SQL statements from a text file, the given error number is passed through the POSIX layer.
Therefore, using this resource , we can conclude that the value of error 2 means "there is no such file or directory."
In short, you have the wrong path.
Try to provide an absolute path, as it is not clear which current working directory will be in the context of your MySQL server. You can assume that this is the working directory of your shell, but it is not obvious that we should expect this to be true.
Lightness Races in Orbit Feb 04 '13 at 9:59 2013-02-04 09:59
source share