vishalrao wrote:
sh: database_name: not found
This is odd. It indicates that the shell is treating database_name as a command it's trying to run. Does your password end with a semicolon? If so (and if the password is unquoted), the shell is interpreting your command line as two separate commands:
Code:
mysql -u user -ppassword
database_name < /path_to_database.sql
I'd suggest running
mysql -u user -p database_name < /path_to_database.sql and then typing in your password when prompted. This is generally safer anyway as other users on the machine can see the arguments you used on the command line, thus exposing your password to them.