简体   繁体   English

如何在php中获取数据库的SQL查询?

[英]How do I get a sql query for a database in php?

How do I get the query for a dump of an entire MySQL database in PHP? 如何在PHP中获取整个MySQL数据库转储的查询? I am planning to then dump it into a .sql file. 我打算然后将其转储到.sql文件中。

There is no single "query" (unless the database is structurally simple). 没有单一的“查询”(除非数据库结构简单)。 What you are asking for is a maintenance operation which is done with the specialized utility mysqldump . 您要求的是使用专用实用程序mysqldump完成的维护操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM