2014年12月11日星期四

Linux下执行脚本导出mysql表数据

mysql -uroot -ppassword asteriskcdrdb -e "select * from cdr" > b.txt
连接上mysql,使用root,password登录 asteriskcdrdb数据库,
执行select *from cdr并将数据内容输出至b.txt