MySQL on XP – auto login batch file

@ECHO OFF
“C:\Program Files\MySQL\MySQL Server 5.5\bin\mysql.exe” “–defaults-file=C:\Program Files\
MySQL\MySQL Server 5.5\my.ini” “-uroot” “-pPASSWORD”

The above was copied from a working batch file, but, failed to work when I tired it recently. The following worked:

@ECHO OFF
cd “C:\Program Files\MySQL\MySQL Server 5.5\bin\”
mysql.exe “–defaults-file=C:\Program Files\MySQL\MySQL Server 5.5\my.ini” “-uroot” “-pYOUR_PASSWORD”

Update

For reasons I don’t understand, that first example should work but fails…..??? Anyway, here’s the orifinal file, for download – not sure what I’m missing.

DOWNLOAD

Leave a Reply