0

Trying to use this query in MySQL Workbench. The SOURCE line gets a syntax error, I've been doing research to figure out why with no success. Any ideas?

drop database commonfx;
create database commonfx character set utf8 collate utf8_general_ci;
use commonfx;
SET autocommit = 0;
SOURCE 'C:\Users\MK\Downloads\testdb.sql';
commit;
SET autocommit = 1;

Error:

Syntax error, unexpected SOURCE_SYM

2
  • Execute it with the --verbose option, e.g. mysql --verbose < text_file and paste the results, along with the contents of c:\users\mk\downloads\testdb.sql. Commented Sep 1, 2014 at 8:18
  • I don't think the contents of the file are relevant, it's complaining that the SOURCE command itself is unexpected. Commented Sep 1, 2014 at 8:22

1 Answer 1

0

MySQL Workbench doesn't support the SOURCE command (yet). Instead paste-in the content of your file instead for now.

Sign up to request clarification or add additional context in comments.

2 Comments

Unfortunately file is 700mb, so that's not an option
700MB? That's certainly a generated file, not something generally useful. Use the restore function in MySQL Workbench Admin then.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.