ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
显示所有数据库 形式:`show databases;` 显示一个数据库的创建语句: `show create database 数据库名;` 显示其他的:`show charset; show collation;` 不知道当前选择的数据库:\s 来查看 例子 \s ~~~ root@localhost laravel54>\s -------------- mysql Ver 14.14 Distrib 5.7.19, for osx10.12 (x86_64) using EditLine wrapper Connection id: 830 Current database: laravel54 Current user: root@localhost SSL: Not in use Current pager: less Using outfile: '' Using delimiter: ; Server version: 5.7.19 Homebrew Protocol version: 10 Connection: Localhost via UNIX socket Server characterset: utf8 Db characterset: utf8mb4 Client characterset: utf8 Conn. characterset: utf8 UNIX socket: /tmp/mysql.sock Uptime: 23 days 5 hours 35 min 47 sec Threads: 1 Questions: 27207 Slow queries: 0 Opens: 673 Flush tables: 1 Open tables: 210 Queries per second avg: 0.013 -------------- ~~~