📜  在所有主机上创建 mysql 用户 - SQL 代码示例

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

代码示例1
CREATE USER 'newuser'@'%' IDENTIFIED BY 'user_password';
GRANT ALL PRIVILEGES ON *.* TO 'newuser'@'%';
SHOW GRANTS FOR 'newuser'@'%';
FLUSH PRIVILEGES;