📜  mysql 添加具有所有权限的用户 - SQL 代码示例

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

代码示例1
# First Login mysql shell..
sudo mysql -u root -p 
CREATE USER 'username'@'localhost' IDENTIFIED BY 'P4ssW0rd';
GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost';
FLUSH PRIVILEGES;