Change the database prefix

Version: 10.5

By default, Sitecore uses the prefix Sitecore when it deploys databases. You can replace the default prefix with your own custom prefix. You have to do this before deploying the Sitecore databases.

Note

If you are deploying to an existing MS SQL environment, you must change the prefix to your existing MS SQL prefix.

To use a custom prefix:

  1. Open the .env secret file for editing.
  2. In the SQL_DATABASE_PREFIX variable, replace Sitecore with your custom prefix.
  3. If the mssql-init image contains dacpac files for custom databases, in the SQL_CUSTOM_DATABASE_PREFIX_UPDATE_FROM variable, replace Sitecore with your custom prefix.
  4. Save the file.
If you have suggestions for improving this article, let us know!