Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
执行以下命令:
GRANT ALL PRIVILEGES ON myblog.* TO "wordpress"@"localhost" IDENTIFIED BY "summer";
如果执行,设置一个新密码,当已经有一个现有的用户 wordpress 与密码冬天?
是的,它确实。
如果存在 IDENTIFIED BY 子句并且您具有全局授予权限,则密码将成为该帐户的新密码,即使该帐户存在并且已经有密码也是如此。如果没有 IDENTIFIED BY 子句,帐户密码保持不变。
引用自MySQL 文档
来自:MySql 文档