新しくインストールするたびに調べてるので、覚え書きとしておいておく。
ユーザ権限の設定 | MySQL講座 [Smart]
http://www.rfs.jp/server/mysql/02/02.html
インストール直後は
$ /usr/bin/mysqladmin -u root password 'new-password'
とやって、rootにパスワードを設定する。更に、localhost以外のホストからもアクセス可能にする(ハイライトしている部分が入力すべきコマンド)。
$ mysql -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 6 Server version: 5.0.77 Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY 'パスワード' WITH GRANT OPTION; Query OK, 0 rows affected (0.00 sec) mysql> flush privileges;
後は、MySQL AdministratorでGUIを使って一般ユーザーを作れば楽ちん。
MySQL :: MySQL GUI Tools Bundle: Archived Downloads
http://dev.mysql.com/downloads/gui-tools/5.0.html
- Newer: iPhone用ページに自動で転送する
- Older: 【Javascript】「var」はなるべく一つにまとめよう
Comments:0
Trackbacks:0
- TrackBack URL for this entry
- http://blog.remora.cx/mt/mt-tb.fcgi/45
- Listed below are links to weblogs that reference
- MySQLにユーザーを登録する from blog.remora.cx

