Home > Database > Mysql Tutorial > SQL Server SA 密码丢失无法连接数据库怎么办?

SQL Server SA 密码丢失无法连接数据库怎么办?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 15:47:34
Original
1226 people have browsed it

如果 Windows 账户无法连接并且 SA 密码也丢失了,那么如何可以连接到数据库呢? 答案是 : 在单用户模式下启动 SQL Server 然后用本地管理员权限连接 。登陆之后就可以修改 SA 密码了。 步骤: 1. 打开 SQL Server 配置管理器 2. 停掉 SQL Server 服务 3. 修

如果Windows账户无法连接并且SA密码也丢失了,那么如何可以连接到数据库呢?

 

答案是: 在单用户模式下启动SQL Server然后用本地管理员权限连接。登陆之后就可以修改SA密码了。

 

步骤:

 

1.      打开SQL Server配置管理器

SQL Server SA 密码丢失无法连接数据库怎么办?

2.      停掉SQL Server服务

 

SQL Server SA 密码丢失无法连接数据库怎么办?

 

3.      修改启动参数增加-m(单用户模式启动)

SQL Server SA 密码丢失无法连接数据库怎么办?

SQL Server SA 密码丢失无法连接数据库怎么办?

4.      重新启动SQL Server

 

5.      用本地管理员权限的Windows 账户连接SQL Server修改SA密码(可以用sqlcmd或者SSMS)

 

6.      修改完成后将-m参数去掉,重新启动SQL ServerSA连接。

 

 

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
Latest Issues
sql file
From 1970-01-01 08:00:00
0
0
0
php - Overhead of prepare vs sql?
From 1970-01-01 08:00:00
0
0
0
Print sql statement
From 1970-01-01 08:00:00
0
0
0
Pass array to SQL insert query using PHP
From 1970-01-01 08:00:00
0
0
0
sql optimization or
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template