___main: duplicate
-> used: libmingw32.a:gccmain.o:1
-> discarded: libgcc.a:__main.o:1
1 undefined symbol(s):
_WinMain@16 (referenced from libmingw32.a:main.o:1; _main; .text)
linking aborted due to fatal errors
collect2: ld returned 1 exit status
Well, this means that you are building GUI program, but your main function is "main" (or CONSOLE_APP_MAIN).
Use GUI_APP_MAIN instead (that contains "WinMain" inside).
"no input files" - I am clearly puzzled by the error.
I am really sorry for causing troubles there. I hope that in the near future (hopefuly as soon as next version next week) MySQL/MinGW combo will work out of box.