create database foo_db;
create user foo_user identified by ‘foo_password‘;
grant all on foo_db.* to ‘foo_user‘@‘%‘;
flush privileges;
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的主要内容,如果未能解决你的问题,请参考以下文章
ubuntut add user and give sudo right
Ubuntu 添加删除用户 How to Add and Delete Users on Ubuntu 16.04
How to add user account on Linux(Automatically and Manually)
mysql安转过程中出现的问题! Fatal error: Can't open and lock privilege tables: Table 'mysql.user' d
mysql安转过程中出现的问题! Fatal error: Can't open and lock privilege tables: Table 'mysql.user' d