Updated: 4 November 2026 · Applies to: SAM Broadcaster PRO on Windows with Firebird, MySQL or MariaDB (database steps tested on MySQL 8.4.11, MySQL 26.7.0 and MariaDB 11.8.9)

SAM Broadcaster shows “Error in connecting, creating or upgrading database” when it cannot reach the database that holds your music library. According to Spacial, the usual cause is that the database service is not running: press Windows+R, type services.msc, start the database services and set them to start automatically. With MySQL 8 the cause is often the login method, according to Spacial: SAM needs a user with mysql_native_password, which MySQL 8.4 disables by default and MySQL 9.0 and later no longer have.

1. Start the database services

  1. Press Windows+R, type services.msc and click OK.
  2. Find the services for your database:
    • Firebird (installed with SAM): Firebird Guardian and Firebird Server. Spacial says both must be running.
    • MySQL: the MySQL service. The MySQL installer names it after the version by default, for example MySQL84.
    • Microsoft SQL Server: its SQL Server service.
  3. Double-click each service, set Startup type to Automatic and click Start.
  4. Start SAM Broadcaster again.

If a service will not start, or stops again straight away, the problem is in the database itself: check the database’s own error log before you change anything in SAM.

2. MySQL 8: create a user with native password login

Spacial explains that SAM Broadcaster PRO’s login method does not work with caching_sha2_password, the default in MySQL 8, and that you should give SAM a user with mysql_native_password. According to MySQL, that plugin is deprecated since 8.0.34, disabled by default in 8.4 and removed in 9.0. On MySQL 8.4.11 with default settings, creating such a user failed in our test:

ERROR 1524 (HY000) at line 1: Plugin 'mysql_native_password' is not loaded

MySQL 8.0 still has the plugin enabled, so skip the next step there. To enable it on MySQL 8.4, add this to the [mysqld] section of my.ini (by default in C:\ProgramData\MySQL\MySQL Server 8.4\), then restart the MySQL service in services.msc:

[mysqld]
mysql_native_password=ON

Then create the database and a user for SAM in the MySQL client, logged in as root (use your own password; the names follow Spacial’s example):

CREATE DATABASE samdb;
CREATE USER 'samuser'@'localhost' IDENTIFIED WITH mysql_native_password BY 'Str0ngPass';
GRANT ALL PRIVILEGES ON samdb.* TO 'samuser'@'localhost';
SELECT user, host, plugin FROM mysql.user WHERE user = 'samuser';

With the plugin enabled, our test returned:

user	host	plugin
samuser	localhost	mysql_native_password

For a user that already exists, switch it with ALTER USER 'samuser'@'localhost' IDENTIFIED WITH mysql_native_password BY 'Str0ngPass';. MySQL then logs that mysql_native_password is deprecated; that warning is expected.

Finally, in SAM open Config › Database Setup, enter the host (localhost or the server IP), port 3306, the database name, user and password, test the connection and save.

3. MySQL 9.0 and later: use MySQL 8.4 or MariaDB

On MySQL 26.7.0 (the newest Innovation release when we tested), the plugin is gone: CREATE USER ... IDENTIFIED WITH mysql_native_password gives the same ERROR 1524, and the server refused to start with the option:

[ERROR] [MY-000067] [Server] unknown variable 'mysql-native-password=ON'.

Use MySQL 8.4 with the setting above, or MariaDB. Spacial’s own guide to running several SAM instances shows an installation that uses MariaDB, and on MariaDB 11.8.9 a normally created user already uses the native method:

User	Host	plugin
samuser	localhost	mysql_native_password

4. Give the SAM user full rights on its database

The message also mentions creating and upgrading: SAM creates and changes its own tables, so a user with only read and write rights is not enough. In our test, such a user got:

ERROR 1142 (42000) at line 1: CREATE command denied to user 'samold'@'localhost' for table 't2'

Grant all privileges on the SAM database, as above. For Microsoft SQL Server, Spacial says the login must be able to access the database and create and modify tables.

If MySQL runs on another computer, remember that a MySQL account is a user name plus a host: 'samuser'@'localhost' only works on the same computer. Create the user for the address SAM connects from, and allow port 3306 only from trusted addresses, as Spacial advises.

5. Firebird: restore or start a new database

If the Firebird services run but the error stays, the database file may be damaged, for example after a power cut. According to Spacial:

  1. Open SAM’s data path (Tools › Jump to › Data path, or the Data path shortcut under SAM Broadcaster › Utils in the Start menu) and go to the SAMDB folder.
  2. Rename SAMDB.FDB to SAMDB-broken.FDB.
  3. Start SAM. It creates a new, empty database, so you must add your music again.

That is why regular backups matter: Tools › Backup saves the database to the backup folder of the data path. Spacial also suggests moving from Firebird to MySQL or Microsoft SQL Server for large libraries (it mentions 10,000 tracks in one article and 20,000 in another). See Do I have to have a database to use SAM Broadcaster? and SAM Broadcaster database issues with MySQL.

Still failing?

Check EventLog.log in SAM’s data path for the exact database error. Spacial asks for that file and SAMBC.core.xml when you open a ticket with them. The database runs on your own computer or database server, not on your Shoutcast or Icecast hosting, so the stream server is not involved in this error.

Official documentation: Spacial: MySQL 8 Native Password Support, the Spacial Help Center article “Error in connecting, creating or upgrading database”, and MySQL’s Native Pluggable Authentication page.

Related services

Shoutcast and Icecast hosting

Centova Cast radio streams with AutoDJ, from $3 a month.

Centova Cast dedicated servers

Centova licence included, from $45 a month.

SonicPanel dedicated servers

SonicPanel licence included, from $56 a month.

Was this answer helpful?

Still stuck? Open a ticket