'mysql can source sql file but mysqlsh can not

I am using mysqlsh to connect to mysql database running in docker container. I can source sql file using sql; but can not source exactly same file using mysqlsh.

sql file not found in mysqlsh but mysql can read it

I googled for the solution yet to find the one.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source