After
channel.exec_command(...)
You have to wait the termination of the command with:
while not channel.exit_status_ready()
... wait ... ( you can read the output with channel.recv, or sleep a bit)
Furthermore, you're zip command is weird... don't you want to say
zip -r /var/db/mysql.zip /var/db/mysql
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…