管理者権限
ローカルホスト
grant all on データベース名.* to ユーザー名@localhost identified by ‘パスワード’
リモートホスト
grant all on データベース名.* to ユーザー名@’%’ identified by ‘パスワード’
照会権限
ローカルホスト
grant select on データベース名.* to ユーザー名@localhost identified by ‘パスワード’
リモートホスト
grant select on データベース名.* to ユーザー名@”%” identified by ‘パスワード’
その他の権限
create | テーブル作成 |
---|---|
alter | テーブル変更 |
drop | テーブル削除 |
select,update,insert,delete,truncate | その他 |