4月 6, 2010
一般ユーザへデータベース作成権限の設定
ここの例では、dbtestデータベースに対して、管理ユーザdbtestを作成
[root@centos ~]# mysql -u root mysql> create database dbtest; mysql> grant all privileges on dbtest.* to dbtest@localhost identified by 'パスワード'; mysql> grant all privileges on dbtest.* to dbtest@localhost.localdomain identified by 'パスワード'; mysql> grant all privileges on dbtest.* to dbtest@'127.0.0.1' identified by 'パスワード';