2.mysql:
[root@localhost liuhan]# yum install mysql mysql-server
...
啟動 MySQL
[root@localhost liuhan]# /etc/init.d/mysqld start
Starting mysqld: [ OK ]
為 root 使用者佈建一個密碼
[root@localhost liuhan]# mysqladmin -u -root -p password liuhan@big
Enter password:
mysqladmin: Can't turn off logging; error: 'Access denied; you need the SUPER privilege for this operation'
[root@localhost liuhan]# /etc/init.d/mysqld stop
Stopping mysqld: [ OK ]
啟動
mysql> update user set password=password('liuhan@9') where user='root';
Query OK, 3 rows affected (0.00 sec)
Rows matched: 3 Changed: 3 Warnings: 0