MariaDB 10.6.4でユーザーに権限を付与する方法

環境
windows 10 64bit
MariaDB 10.6.4

操作方法
1.CREATEでユーザーを作成します

MariaDB [(none)]> CREATE USER 'cftuser'@'%' IDENTIFIED BY 'cftpassword';
Query OK, 0 rows affected (0.303 sec)

2.GRANTで権限を付与します

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

3.権限をフラッシュします

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

 

MariaDB

Posted by arkgame