将mysql的数据表中的数据导出到excel表格中
mysql -hhost_ip -uroot -ppassword -e “select * from table;” db_name >excle表格的路径
-u root用户
-p root密码
-e 导出sql语句结果
db_name数据库名
后接地址和导出文件名字,不存在则自己创建
mysql -hhost_ip -uroot -ppassword -e “select * from table;” db_name >excle表格的路径
-u root用户
-p root密码
-e 导出sql语句结果
db_name数据库名
后接地址和导出文件名字,不存在则自己创建