安装phpmyadmin,需要mysql事先配置好root的密码。
使用putty登录到服务器,执行下面安装
apt-get install phpmyadmin
提示如下:
root@241541:~# apt-get install phpmyadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
dbconfig-common javascript-common libjs-mootools libmcrypt4 php5-mcrypt
wwwconfig-common
Suggested packages:
libmcrypt-dev mcrypt postgresql-client apache apache-ssl
The following NEW packages will be installed:
dbconfig-common javascript-common libjs-mootools libmcrypt4 php5-mcrypt
phpmyadmin wwwconfig-common
0 upgraded, 7 newly installed, 0 to remove and 26 not upgraded.
Need to get 5184kB of archives.
After this operation, 21.3MB of additional disk space will be used.
Do you want to continue [Y/n]?
输入 Y, 回车继续。
按 空格键 选择 Apche2 如下图:

选择完毕后,回车继续,提示如下图,是否需要创建phpmyadmin数据库,

直接回车继续,提示输入mysql的管理员密码,输入后如下所示:

回车继续后,如下图,提示输入phpmyadmin连接数据的密码,直接回车由系统随机产生一个即可。

完成安装提示如下:

现在访问如下地址测试:
http://184.82.9.30/phpmyadmin/

输入mysql的root帐号和mysql的密码,点击 执行 进行登录,进行正常访问如下:

如果访问提示 404 ,检查输入无问题后, 尝试执行如下命令:
ln -s /usr/share/phpmyadmin /var/www
然后再访问。