先看效果
首页
安心食用
npx dbshow@latest
按照提示输入相关信息
Welcome to the DB Show! v0.0.7
? Use config from local? no
? Select a database type MySQL
? Enter the host name localhost
? Enter the port number 3306
? Enter the user name root
? Enter the password 123456
? Enter the database name ruoyi
? Save config to local? yes
? Enter a key to save mysql-localhost-3306-ruoyi
? Enter server port number 3000
启动成功
Datebase doc server is ready.
➜ Local: http://localhost:3000
➜ Network: http://192.168.1.128:3000
➜ Network: http://192.168.216.1:3000
➜ Network: http://192.168.222.1:3000
在浏览器打开就可以啦!!!!!
源码地址
此工具代码已上传至gayhub, 项目地址
xbmlz/dbshow: A CLI tool to show database schema, support Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Oracle Database etc. (github.com)