我如何使用 php 导出 mysql 表 [英] How can i use php to export a mysql table

查看:65
本文介绍了我如何使用 php 导出 mysql 表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将没有表信息的 mysql 表的行导出到 xml 文件.我读到 mysqldump 命令将完成工作,但我无法获得正确的语法.有人可以发布 mysqldump 命令的示例代码吗?谢谢.

I am trying to export just the rows of a mysql table without the table information to an xml file. I read that the mysqldump command will get the job done but I cant manage to get the correct syntax. Can someone post an example code for mysqldump command? Thank you.

$command="mysqldump --xml ";

推荐答案

试试这个页面上的脚本:http://www.chriswashington.net/tutorials/export-mysql-database-table-data-to-xml-file

Try the script on this page: http://www.chriswashington.net/tutorials/export-mysql-database-table-data-to-xml-file

这篇关于我如何使用 php 导出 mysql 表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆