差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン | 最新のリビジョン 両方とも次のリビジョン | ||
freebsd:freebsd_11_install_mariadb_10.3 [2018-11-06 18:03] Decomo [my.cnfのサンプルがない?] |
freebsd:freebsd_11_install_mariadb_10.3 [2018-11-07 11:51] Decomo |
||
---|---|---|---|
行 291: | 行 291: | ||
+--------------------------+----------------------------------+ | +--------------------------+----------------------------------+ | ||
8 rows in set (0.001 sec) | 8 rows in set (0.001 sec) | ||
+ | </ | ||
+ | |||
+ | ==== ユーザーの追加 ==== | ||
+ | |||
+ | < | ||
+ | create user ユーザー名@localhost identified by パスワード; | ||
+ | </ | ||
+ | |||
+ | ==== DBと権限の追加 ==== | ||
+ | |||
+ | DBの作成 | ||
+ | < | ||
+ | create database データベース名 | ||
+ | </ | ||
+ | |||
+ | 指定DBの全権限をユーザーに追加 | ||
+ | < | ||
+ | grant all on データベース名.* to ユーザー名@localhost identified by パスワード; | ||
</ | </ | ||