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

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

代码示例6
CREATE USER 'pdam'@'localhost' IDENTIFIED BY 'pdamP@ssw0rd'; # create user
GRANT ALL PRIVILEGES ON `pdam_db`.* TO 'pdam'@'localhost'; # set db access
FLUSH PRIVILEGES; # Reload