Im am trying to get the following script to import a database. Every time I run the script I get a
mysql -u username -pmypassword my_database < /var/hostdata/databases/my_database.sql
-bash: /var/hostdata/databases/my_database.sql: No such file or directory.
At one point this script would work for me but now it isn't. Also everything I am reading online say this should work but obviously its not. What am I doing wrong? I am running MySQL 5.5.41 on Ubuntu 12.04.