且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

向 mariadb 用户授予创建数据库权限

更新时间: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';