If the mysql client starts a script (regardsless if via < or source funtion),
and the script invokes other scripts (only scriptnames without pathes),
mysql search the scripts only in the working dir of mysql client.
Add an option
which set the path, where scripts will be searched via source command in a sql-scripts
Default is still mysql client path