要同一个版本才能导入
备份VOS2009的数据
中断当前通话
登录SSH.终止vos服务
/etc/init.d/mbx2009d stop
/etc/init.d/vos2009dall stop
/etc/init.d/mysql stop
cd /var/lib/mysql
cp -dprf vosdb /root/vosdbdate
/etc/init.d/mysql start
/etc/init.d/vos2009d start
/etc/init.d/mysql start
cd /root
tar -jcvf vosdb.bz2 vosdbdate 压缩vosdbdate文件 压缩后移动到自己的机器上
恢复vos2009数据
进入放有备份数据库的目录
tar -jxvf vosdb.bz2
cd /root/vosdb
/etc/init.d/mbx2009d stop
/etc/init.d/vos2009dall stop
/etc/init.d/mysql stop
cd /var/lib/mysql/vosdb/
rm -rf *
cd /root/vosdb/
mv * /var/lib/mysql/vosdb/
/etc/init.d/mysql start
/etc/init.d/vos2009dall start