55. 55
• 安裝 phpMyAdmin
• apt-get -y install phpmyadmin
• You will see the following questions:
• Web server to configure automatically: <-- Select the option:
apache2
• Configure database for phpmyadmin with dbconfig-common?
<-- Yes
• MySQL application password for phpmyadmin: <-- Press enter,
apt will create a random password automatically.
56. 56
• 建立 “admin” 帳號,用來登入 phpMyAdmin
• mysql -u root
• CREATE USER 'admin'@'localhost' IDENTIFIED BY
'howtoforge';
• GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost'
WITH GRANT OPTION;
• FLUSH PRIVILEGES;
• exit