mysql> show databases;
+----------------------------+
| Database |
+----------------------------+
| information_schema |
| #mysql50#.ICE-unix |
| aliyun_assist_test |
| mysql |
| #mysql50#pip-9s8mYV-unpack |
| #mysql50#pip-build-Dlo88P |
| test |
+----------------------------+
| Database |
+----------------------------+
| information_schema |
| #mysql50#.ICE-unix |
| aliyun_assist_test |
| mysql |
| #mysql50#pip-9s8mYV-unpack |
| #mysql50#pip-build-Dlo88P |
| test |
+----------------------------+
原因是/etc/jmy.cnf中设定了datadir,该路径中的一些文件被mysql误认为是数据库了,
解决方案
修改/etc/my.cnf中的datadir为一个空的文件夹,同时删除原来的文件夹中的pip-9s8mYV-unpack以及pip-build-Dlo88P即可