示例如下:

1
2
3
"%~dp0\mysql-5.6.19-win32\bin\mysql.exe" ^
-h127.0.0.1 -P31060 -uroot ^
--execute="update mysql.user SET password=PASSWORD('123456') WHERE user='root';";