创建用户赋予权限

MariaDB [(none)]> CREATE USER 'admin'@'%' IDENTIFIED BY 'helloworld';
Query OK, 0 rows affected (0.008 sec)

MariaDB [(none)]> GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%';
Query OK, 0 rows affected (0.008 sec)

MariaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.000 sec)

分类: 默认 标签: 发布于: 2022-03-31 12:45:31, 更新于: 2022-03-31 12:45:31