I'm using MySQL Workbench and I have a series of .sql files stored from on my computer. I want to run these files from the query tab, but every time I use this command:
source '/Users/[username]/Documents/company/department.sql';
I get an Error 1064, which says "Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysql> source '/Users/[username]/Documents/company/department.sql' at line 1
"
Can anyone tell me what I'm doing wrong?