如何选择整个数据库并显示所有信息

发布于 2024-09-24 03:57:00 字数 138 浏览 0 评论 0原文

是否可以从数据库中选择所有表(不知道它们的名称)并显示它们? 我的朋友有一个 mysql 服务器,但他没有安装 phpMyAdmin,他恳求我将他所有的 php-fusion 帐户转移到他的新 WordPress 博客。他根本不懂mysql... 有人有主意吗?

Is it possible to select all the tables from a database (not knowing their names) and displaying them?
My friend has a mysql server but he doesn't have phpMyAdmin installed and he's begging me to transfer all his php-fusion accounts to his new WordPress blog. He doesn't understand a thing with mysql...
Anyone got an idea?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

携君以终年 2024-10-01 03:57:00

使用 SHOWDESCRIBE 语句。这就是 phpMyAdmin 在代码中所做的全部事情。您的 SQL 用户应该拥有权限。

列出所有表:

SHOW tables;

列出表定义:

DESCRIBE table_name;

查看 MySQL 了解更多详细信息。

Use the SHOW and DESCRIBE statements. That's all phpMyAdmin is doing in the code. Your SQL user should have privileges.

List all tables:

SHOW tables;

List table definition:

DESCRIBE table_name;

Check out MySQL for more details.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文