参考 https://www.leftso.com/blog/406.html 数据库用的是mysql /usr/local/mysql/bin/mysql Ver 14.14 Distrib 5.7.24, for macos10.14 mysql> status /usr/local/mysql/bin/mysql -u root -p show databases;