📅  最后修改于: 2022-03-11 15:05:22.681000             🧑  作者: Mango
# 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;