fix getmysql, start with setlocal