[mysql] データベースユーザーの作成
[mysql] データベースユーザーの作成
このページのタグ:[mysql]
mysqlでユーザーを作成する場合はsqlの grantコマンドを実行します。

以下はユーザー名"user01",パスワード"password"でデータベースのユーザーを作成します。
c:\> mysql -u root -p
Enter password: (パスワードを入力)

mysql> grant select,insert,delete,update,create,drop,file,alter,index on *.* to user01 identified by 'password';
mysql> flush privileges; /*←権限テーブルを再読み込みする*/
mysql> exit
Bye
c:\> exit
上記コマンドを実行することでデータベースのユーザーの作成ができます。
登録日 :2010-02-18
最終更新日 :2010-02-19
このページのタグ:[mysql]