MySQL--在批处理中执行SQL

"%~dp0\mysql-5.6.19-win32\bin\mysql.exe" -h127.0.0.1 -P31060 -uroot --execute="grant all on *.* to 'root'@'%' identified by '123456';update mysql.user SET password=PASSWORD('123456') WHERE user='root'
相关文章
相关标签/搜索