【发布时间】:2016-02-05 21:28:18
【问题描述】:
我怎样才能只转储 MySQL 数据库表,它将存储我的驱动器 'c:',而不是整个数据库
这是我正在运行的 python 连接脚本:
cnx = mysql.connector.connect(user='test',
password ='test',host='192.168.25.63',
database='test',port='3306')
我也使用子流程来参考这个问题: How to copy a database with mysqldump and mysql in Python?
我只想拥有一个 python 脚本,就像使用 windows 命令进行 MySQLdump 一样。
【问题讨论】: