You can split the file contents on semicolons safely (for most typical SQL dumps) and execute each statement separately.