假设你的mysql用户名和密码都是test,要导出test库的users表,linux下直接在命令行运行:mysql-utest-ptest-e"select*fromtest.users">users.xls