Tag Archives: port

Cannot connect to database master 1920x1080

Cannot connect to database master SharePoint 2016

Advertisements
Advertisements

Cannot connect to database master

While running psconfig wizard got error as "Cannot connect to database master at SQL Server at server_name. The database might not exist, or the current user does not have permission to connect to it"

Error:

"Cannot connect to database master at SQL Server at server_name. The database might not exist, or the current user does not have permission to connect to it" 

cannot-connect-to-database-master-at-server_sharepoint2016

Solution:

Open the Windows Firewall with Advanced Services and add an inbound rule to allow traffic over port 1433.

 

Advertisements
Advertisements
Advertisements

Configuring SQL Server client aliases

If you block UDP port 1434 or TCP port 1433 on the computer that is running SQL Server, you must create a SQL Server client alias on all other computers in the server farm. You can use SQL Server client components to create a SQL Server client alias for computers that connect to SQL Server.

To configure a SQL Server client alias

  1. Verify that the user account that is performing this procedure is a member of either the sysadmin or the serveradmin fixed server role.
  2. Run Setup for SQL Server on the target computer, and install the following client components:

Connectivity Components

Management Tools

  1. Open SQL Server Configuration Manager.
  • In the navigation pane, click SQL Native Client Configuration.

  • In the main window under Items, right-click Aliases, and select New Alias.

  • In the Alias – New dialog box, in the Alias Name field, enter a name for the alias. For example, enter SharePoint_alias.

  • In the Port No field, enter the port number for the database instance. For example, enter 40000. Make sure that the protocol is set to TCP/IP.

  • In the Server field, enter the name of the computer that is running SQL Server.

  • Click Apply, and then click OK.

  • Verification: You can test the SQL Server client alias by using SQL Server Management Studio, which is available when you install SQL Server client components.

  • Open SQL Server Management Studio.

  • When you are prompted to enter a server name, enter the name of the alias that you created, and then click Connect. If the connection is successful, SQL Server Management Studio is populated with objects that correspond to the remote database.

  • To check connectivity to additional database instances from SQL Server Management Studio, click Connect, and then click Database Engine.

  • See also :

    Securing SharePoint: Harden SQL Server in SharePoint Environments

    How to: Configure a Windows Firewall for Database Engine Access

    How to: Configure a Server to Listen on a Specific TCP Port (SQL Server Configuration Manager)

    Configuring Windows Firewall to open manually assigned ports

    To access a SQL Server instance through a firewall, you must configure the firewall on the computer that is running SQL Server to allow access. Any ports that you manually assign must be open in Windows Firewall.

    To configure Windows Firewall to open manually assigned ports

    1. Verify that the user account that is performing this procedure is a member of either the sysadmin or the serveradmin fixed server role.
    2. In Control Panel, open System and Security.

    3. Click Windows Firewall, and then click Advanced Settings to open the Windows Firewall with Advanced Security dialog box.

    4. In the navigation pane, click Inbound Rules to display the available options in the Actions pane.

    5. Click New Rule to open the New Inbound Rule Wizard.

    6. Use the wizard to complete the steps that are required to allow access to the port that you defined in  Configure a SQL Server instance to listen on a non-default port.

    Note:

    You can configure the Internet Protocol security (IPsec) to help secure communication to and from your computer that is running SQL Server by configuring the Windows firewall. You do this by selecting Connection Security Rules in the navigation pane of the Windows Firewall with Advanced Security dialog box.