If you use MySQL workbench, then leave out \G (which is different than \g). You're right, it's only for formatting the output when run in mysql command line interface utility. I do prefer to use mysql and write the script in Notepad++. It's quicker for me: the script is saved in a file and I can do more 'poking' of the database with quick SQL commands at mysql prompt.
Do not add anything from what mysqldump creates and it's not shown in the SQL scripts examples in the class notes.
Chris, does adding ; after “select * from xxx” help? In other words, when the script is run, the insertion takes place, some message is displayed about the number of rows that were changed, and then the content of the table is displayed?
I recommend we simply comment it out. When we run the script with ‘source’ command in mysql, we can then uncomment ‘select * …’.
It’s strange that the xxx_insert_data.sql with ‘select *…’ statements in it won’t work in the Workbench. I’m probably missing something…