更新时间:2022-05-17 22:19:39
创建一个用户,然后授予该用户您希望他们拥有的权限.
Create a user and then grant that user the privileges you want them to have like this.
CREATE USER 'antoine'@'localhost' IDENTIFIED VIA mysql_native_password USING 'a-password';
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON *.* TO 'antoine'@'localhost';