Home > Database > Mysql Tutorial > body text

sybase下如何恢复master设备

WBOY
Release: 2016-06-07 17:40:49
Original
783 people have browsed it

由于误删除master库中的syslogins表导致用户不能登录数据库,不过有master数据库的备份,尝试恢复,总结步骤如下。1备份master数据库dumpdatabasemastertoe:\\ba

      由于误删除master库中的syslogins表导致用户不能登录数据库,香港服务器租用,服务器空间,不过有master数据库的备份,尝试恢复,美国空间,总结步骤如下。

 

dump database master  to 'e:\backup\master.dat'

 

sqlsrvr -d g:\master.dat -b500M

 

sqlsrvr -dg:\master.dat -sDY -eg:\sybase\ASE-12_5\install\errorlog -ig:\sybase\ini -Mg:\sybase -m

-s 服务名

-e 错误日志文件名

-i 接口文件的目录

 

alter database master on master = '280M'

 

注意可以直接更新系统表,不需要sp_configure ‘allow update’,1

select * from sysservers                   

update sysservers set srvnetname='crm_bs' where srvid=1

 

 

7 load master数据库的备份

load database master from 'e:\backup\master.dat'

 

本文出自 “myblog” 博客,请务必保留此出处

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template