I'm trying to run a script with MySQL on Windows like this :
mysql.exe -h 127.0.0.1 databaseName -uroot < path\to\my\script.sql
On my script I do some stuff like this
select 'start'; select 'import'; SOURCE import some other sql with functions and procedures select 'run'; some stuff select 'end';
And when I'm looking for logs I found this :
start start import import run run end end
Did you know why MySQL is doing this ?
select 'start';are you still getting it twice? seem like sqlfiddle.com/#!9/9eecb7d/98044 mysql is outputting column title and values. so to check this theory you can tryselect 'start' as my_command;You'll see the difference ;-)