|
@@ -56,7 +56,7 @@
|
|
|
|
|
|
![image-20230407112202109](assets/image-20230407112202109.png)
|
|
![image-20230407112202109](assets/image-20230407112202109.png)
|
|
|
|
|
|
-6. 选择混合格式,输入两次相同的SA密码,点击添加当前用户,然后再点击数据目录
|
|
|
|
|
|
+6. 选择混合格式,输入两次相同的SA密码,点击添加当前用户,然后再点击数据目录,**这里也需要添加ctx作为管理员**
|
|
|
|
|
|
![image-20230407112341875](assets/image-20230407112341875.png)
|
|
![image-20230407112341875](assets/image-20230407112341875.png)
|
|
|
|
|
|
@@ -68,56 +68,6 @@
|
|
|
|
|
|
![image-20230407112522077](assets/image-20230407112522077.png)
|
|
![image-20230407112522077](assets/image-20230407112522077.png)
|
|
|
|
|
|
-# 故障转移集群配置
|
|
|
|
-
|
|
|
|
-如上步骤将另外一台SQL2也做相应的配置网络、加域、安装SQL,即可按如下步骤开始配置故障转移集群:
|
|
|
|
-
|
|
|
|
-注:仅需要在SQL1、 SQL2任意一台上配置如下的故障转移群集即可。
|
|
|
|
-
|
|
|
|
-1. 打开控制面板里的管理工具,双击“故障转移群集管理器”
|
|
|
|
-
|
|
|
|
-![image-20230411093603816](assets/image-20230411093603816.png)
|
|
|
|
-
|
|
|
|
-2. 点击右上角的创建群集,下一步
|
|
|
|
-
|
|
|
|
-![image-20230411093831480](assets/image-20230411093831480.png)
|
|
|
|
-
|
|
|
|
-3. 分别输入SQL1和SQL2两台服务器的FQDN全称,点击添加
|
|
|
|
-
|
|
|
|
-![image-20230411093941822](assets/image-20230411093941822.png)
|
|
|
|
-
|
|
|
|
-4. 完成后下一步
|
|
|
|
-
|
|
|
|
-![image-20230411094017871](assets/image-20230411094017871.png)
|
|
|
|
-
|
|
|
|
-5. 设置一个群集名称及IP地址:
|
|
|
|
-
|
|
|
|
-![image-20230411094253133](assets/image-20230411094253133.png)
|
|
|
|
-
|
|
|
|
-6. 点击完成
|
|
|
|
-
|
|
|
|
-![image-20230411094521986](assets/image-20230411094521986.png)
|
|
|
|
-
|
|
|
|
-7. 状态都是正常,完成配置
|
|
|
|
-
|
|
|
|
-![image-20230411094548939](assets/image-20230411094548939.png)
|
|
|
|
-
|
|
|
|
-# 启用AlwaysON
|
|
|
|
-
|
|
|
|
-1. 分别登陆到SQL1和SQL2上将SQL的“启用AlwaysON可用性组”功能给钩选上
|
|
|
|
-
|
|
|
|
-![image-20230411094708240](assets/image-20230411094708240.png)
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-2. 打开“SQL Server Configuration Manager”工具,定位到SQL Server服务,双击”SQL Server(MSSQLSERVER)“,选中”AlwaysON高可性“的标签卡,勾选上”启用AlwaysON可用性组“,确定,确定。
|
|
|
|
-
|
|
|
|
-![image-20230411094943938](assets/image-20230411094943938.png)
|
|
|
|
-
|
|
|
|
-3. 按下图操作重启” SQL Server(MSSQLSERVER)“服务。
|
|
|
|
-
|
|
|
|
-![image-20230411095012949](assets/image-20230411095012949.png)
|
|
|
|
-
|
|
|
|
# 安装Studio
|
|
# 安装Studio
|
|
|
|
|
|
1. 在某台SQL服务器安装Studio管理工具,这里选择SQL1
|
|
1. 在某台SQL服务器安装Studio管理工具,这里选择SQL1
|
|
@@ -152,6 +102,3 @@
|
|
|
|
|
|
![image-20230411112057520](assets/image-20230411112057520.png)
|
|
![image-20230411112057520](assets/image-20230411112057520.png)
|
|
|
|
|
|
-9. SQL2做类似的操作
|
|
|
|
-
|
|
|
|
-![image-20230411112146926](assets/image-20230411112146926.png)
|
|
|