📜  mysql 使用 mysql_native_password 创建用户 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:23.231000             🧑  作者: Mango

代码示例1
CREATE USER 'user'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'user'@'localhost';
FLUSH PRIVILEGES;