1.修改my.conf配置文件,secure-file-priv = "" #添加一行,可以指定路径,如果为空可以导入任何有权限的路径
2.进去数据库
3. mysql> select * from tt into outfile '/abc/test.xls';
两条命令教你把Mysql中的数据导入到excle表格
最新推荐文章于 2024-07-17 14:16:37 发布
1.修改my.conf配置文件,secure-file-priv = "" #添加一行,可以指定路径,如果为空可以导入任何有权限的路径
2.进去数据库
3. mysql> select * from tt into outfile '/abc/test.xls';