备份:
[root@server bin]# mysqldump –opt –socket=/tmp/mysql.sock –password db_news > /disk2/bak/db_news.sql

恢复:
[root@server bin]# mysql –socket=/tmp/mysql.sock –password db_news < /disk2/bak/db_news.sql

发表评论