0

When I'm trying to create a configuration database for a new SharePoint 2019 standalone environment following the steps mentioned in this article: SharePoint: Local Accounts should only be used in stand alone mode

Running this command from the article results in an error:

New-SPConfigurationDatabase -DatabaseName SharePoint_ConfigDB -DatabaseServer [ServerName] -AdministrationContentDatabaseName SharePoint_ContentDB -Passphrase (ConvertTo-SecureString [password] -AsPlaintext -Force) -FarmCredentials (Get-Credential) -localserverrole SingleServerFarm

enter image description here

How can I successfully create a configuration database for a standalone installation of SharePoint 2019 using this command?

3 Answers 3

1

The problem here is that the words wrapped in brackets [] are supposed to be string arguments.

New-SPConfigurationDatabase -DatabaseName SharePoint_ConfigDB -DatabaseServer "YouDBServerName/Alias" -AdministrationContentDatabaseName SharePoint_ContentDB -Passphrase (ConvertTo-SecureString "PasswordMatchingRequiredComplexity" -AsPlaintext -Force) -FarmCredentials (Get-Credential) -localserverrole SingleServerFarm

3
  • it worked but after this I get error that: New-SPConfigurationDatabase : Cannot connect to database master at SQL server
    – Grzegorz Z
    Commented Jun 27 at 7:29
  • 1
    Do you have a SQL server to connect to? SP2019 doesn’t come with any version of SQL Server (unlike 2010 and 2013).
    – Greg W
    Commented Jun 27 at 9:25
  • Ya after I install MS SQL Server it works :) Thanks :)
    – Grzegorz Z
    Commented Jun 28 at 13:24
1

The passphrase supplied does not meet the minium complexity requirements

The passphrase is not valid: [password]

It should be replaced by a more complex phrase and not used as it!

Try something like: P@$sw0rd

(8 characters, 1 uppercase, 1 number, 2 non-alphabetic)

The same issue will occur with [ServerName].

You have to change the argument like this: -DatabaseServer YourSQLServer\YourSQLInstance

3
  • it worked but after this I get error that: New-SPConfigurationDatabase : Cannot connect to database master at SQL server
    – Grzegorz Z
    Commented Jun 27 at 7:29
  • 1
    Did you change [ServerName] by the name of the SQL server? Like this: -DatabaseServer YourSQLServer\YourSQLInstance
    – jleture
    Commented Jun 27 at 7:32
  • Yes all time I have got this problem. I think I don't know which user to use.
    – Grzegorz Z
    Commented Jun 27 at 8:59
1

Sure, I can definitely help with that! Installing SharePoint 2019 can sometimes be a bit tricky, so let's see if we can troubleshoot the issues you're running into. Here’s what you should check:

Checking Prerequisites:

Before diving into the main installation, make sure all the necessary prerequisites are in place. SharePoint 2019 needs a few specific components, and there’s a handy tool called PrerequisiteInstaller.exe that comes with the SharePoint setup. This tool can help automate the installation of these prerequisites. Make sure you've run this first! Permissions:

It’s important to ensure that the account you're using to install SharePoint has all the necessary permissions. This includes administrative rights on the server and the right roles in SQL Server—specifically, the dbcreator and securityadmin roles. SQL Server Connectivity:

Sometimes the issue might be as simple as connectivity to your SQL Server. Make sure your SQL Server is up and running and that the SharePoint server can talk to it. This might involve checking your firewall settings and making sure SQL Server is configured to allow remote connections. Configuration Wizard Hiccups:

If you're having trouble with the SharePoint Products Configuration Wizard, the error logs are going to be your best friend. They can give you specific clues on what went wrong. This could be anything from database issues to network problems or configuration errors with service accounts. Server Role Configuration:

SharePoint 2019 introduced a feature called MinRole, which requires you to specify server roles during setup. Make sure the role you choose fits with your overall server topology and performance needs. If you let me know the specific errors you're seeing or describe what's happening in more detail, I can offer more precise advice. Hang in there—we’ll get SharePoint up and running!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.