MySQLのrootパスワードを設定する方法
赤字:入力した文字
黒字:画面出力文字
(1) 設定
$
mysql
mysql>
set password for root@localhost=password('himitsu');
Query OK, 0 rows affected (0.35 sec)
(2)確認
$ mysql -u root -p
Enter password:himitsu(表示はされない)
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 31642
Server version: 5.0.77 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
って、なればOK。