新しいユーザーの登録



【1.まずはrootでログイン】
>mysql -u root -p
>*******


【2.ユーザー登録】
grant all on *.* to 'nagai'@'localhost' identified by 'nagaipass'


※to ユーザー名、by パスワードと書く。DBを作ったら、DB毎に権限を与えておこう。
grant all on [databasename].* to 〜(以下同じ)