根据MySQL服务器的设置及其安全设定和口令,命令可能略有不同。
Depending on the setup of your MySQL server and its security Settings and passwords, your command might vary a bit.
一个很好的例子是vipw命令,它通常允许root用户编辑系统口令文件。
A good example is the vipw command, which normally allows root to edit the system password file.
要注册一名管理员用户,请在服务器控制台中输入下面的命令(其中 uadmin 是用户 id,padmin 是口令)
To register an administrative user, enter the following at the server console (where uadmin is the user id, and padmin is the password)
应用推荐