SQL格式恢复
[root@localhost backup]# /software/bin/MySQL -usystem -p'Mysql#2015' -S /data/mysql.sock fire < /backup/firedb_fullbk.sql
也可以使用SOURCE语句来执行
mysql> use fire
Database changed
mysql> source /backup/firedb_fullbk.sql
当前文章:MySQL5.5执行脚本中的SQL
文章来源:
http://jkwzsj.com/article/jeggss.html