add user and grant privileges on mariadb

Posted Hello未来

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了add user and grant privileges on mariadb相关的知识,希望对你有一定的参考价值。

create database foo_db;
create user foo_user identified by ‘foo_password‘;
grant all on foo_db.* to ‘foo_user‘@‘%‘;
flush privileges;

 

以上是关于add user and grant privileges on mariadb的主要内容,如果未能解决你的问题,请参考以下文章