MYSQL ユーザー作成

管理者権限

ローカルホスト
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その他