I am trying to execute a query on the foodmart database in command line on Ubuntu, or better in python, if possible:

<http://pentaho.dlpage.phi-integration.com/mondrian/mysql-foodmart-database>

I tried `mysql -uroot -p <foodmart_mysql.sql` and I got `ERROR 1046 (3D000) at line 22: No database selected`. I searched for this error and I found that I need to check for 'USE databsename`or something like this in the`sql`file and make sure that it is not there. However, there is not any`USE` command in the file. 

I appreciate any help or comment. 

Thanks,
Afshin