今天发现 phpmyadmin 正在我的公共网络服务器上运行(!)。我立即卸载了它。也就是说,我以为我做到了,直到我在浏览器中转到 [site]/phpmyadmin 并发现登录提示仍然出现。
我首先运行了 apt-get 实用程序:
sudo apt-get purge phpmyadmin*
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
phpmyadmin*
0 upgraded, 0 newly installed, 1 to remove and 266 not upgraded.
After this operation, 25.0 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 523610 files and directories currently installed.)
Removing phpmyadmin (4:4.6.6-5) ...
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
(Reading database ... 521935 files and directories currently installed.)
Purging configuration files for phpmyadmin (4:4.6.6-5) ...
dpkg: warning: while removing phpmyadmin, directory '/usr/share/phpmyadmin' not empty so not removed
然后运行 dpkg 确认..它说它已被卸载:
sudo dpkg-reconfigure phpmyadmin
dpkg-query: package 'phpmyadmin' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
/usr/sbin/dpkg-reconfigure: phpmyadmin is not installed
然而浏览器仍然提供让我登录:
我没有做的一件事是删除实际的 phpmyadmin 数据库。我知道我可能已经删除了它而不会产生任何负面影响,但是这些服务器托管的网站的知名度非常非常高,我不想冒险。我不认为留下一个孤立的数据库会导致任何问题(除了浪费一点磁盘空间)。
除了已经完成的工作之外,我还需要采取一些手动步骤吗?
PS我在这里发现了一个类似的问题,但是已经有一年多了,并且没有发布解决方案: 如何完全卸载phpMyAdmin?