====== ユーザー管理 ====== [[database:mysql|一つ上へ]] ===== ユーザー作成 ===== create user 'user'@'host' identified by 'password' ===== ユーザーのパスワード変更 ===== set password for 'user'@'host' = 'password' alter user 'user'@'host' identified by 'password'; ===== ユーザー一覧の確認 ===== select * from mysql.user; (縦に並べて表示) select * from mysql.user \G; ===== ユーザーとホスト名の確認 ===== select user, host from mysql.user; ===== ユーザーにデータベースへの権限を付与する ===== grant all privileges on wordpress.* to 'wpuser'@'192.168.%' ===== ユーザーの権限の確認 ===== show grants for 'user'@'host'; ex) show grants for wpuser@localhost;