卸载阿里云的mysql_阿里云服务器下mysql卸载

一, 登陆阿里云服务器后,查看mysql状态,看到LISTEN表示已安装mysql成功

1.

[email protected]:/# sudo netstat -tap | grep mysql

tcp 0 0 localhost:mysql *:* LISTEN 3051/mysqld

二,卸载

2.

sudo apt-get remove mysql-server

[email protected]:/# sudo apt-get remove mysql-server

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following packages were automatically installed and are no longer required:

libcgi-fast-perl libcgi-pm-perl libencode-locale-perl libevent-core-2.0-5 libfcgi-perl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl

libhttp-message-perl libio-html-perl liblwp-mediatypes-perl liburi-perl mysql-client-5.7 mysql-client-core-5.7 mysql-server-5.7 mysql-server-core-5.7

Use 'sudo apt autoremove' to remove them.

The following packages will be REMOVED:

mysql-server

0 upgraded, 0 newly installed, 1 to remove and 61 not upgraded.

After this operation, 110 kB disk space will be freed.

Do you want to continue? [Y/n] Y

(Reading database ... 102732 files and directories currently installed.)

Removing mysql-server (5.7.24-0ubuntu0.16.04.1) ...

3,sudo apt-get autoremove mysql-server

[email protected]:/# sudo apt-get autoremove mysql-server

Reading package lists... Done

Building dependency tree

Reading state information... Done

Package 'mysql-server' is not installed, so not removed

The following package

你可能感兴趣的:(卸载阿里云的mysql)