« 2.My SQLサーバの起動 | メイン | 4.データベースの作成 »
2005年08月25日
3.My SQLの初期設定
root パスワードの設定
# mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 3.23.58
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> set password for root=password('mysql roorのパスワード') ;
Query OK, 0 rows affected (0.00 sec)
mysql> use mysql ;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> select * from user ;
(userテーブルの内容)
4 rows in set (0.00 sec)
mysql> delete from user where password='';
Query OK, 3 rows affected (0.23 sec)
mysql> select * from user ;
(userテーブルの内容。 ユーザ名無しのデータが無くなったことを確認する)
1 row in set (0.00 sec)
mysql> quit
投稿者 shell : 2005年08月25日 14:29