windows的备份由于路径问题,在Linux上会报错 File 'YourDB_Product' cannot be restored to 'Z:\Microsoft SQL Server\MSSQL11.GLOBAL\MSSQL\Data\YourDB\YourDB_Product.ndf'. Use WITH MOVE to identify a valid location for the file. Msg 5133, Level 16, State 1, Server server
版本:5.5.14 OS: ConetOS 6.3 1.创建recover.sh [root@yoon export]# vi recover.sh #!/bin/bash bakdir=/export/datamysql=/export/servers/mysql/bin/mysqluser=rootpasswd=123456 for port in {3361..3362}do ($mysql -u$user -p$passwd -S /export/data/mysql/tmp/mys
用命令还原数据库备份 1.建立一个新的数据库db2 create db 数据库名 on 路径 using codeset GBK territory zh_CN 2.将需要恢复的数据库恢复得到这个新的数据库中db2 restore db 数据库 from 路径 taken at 时间戳记 into 数据库名 redirect without rolling forward 3.重新定向表空间(这一步老是不成功)必须事先知道表空间容器的类型和大小,通过 list tablespaces命令查看数据