First boot now authenticates its own `FLUSH PRIVILEGES` (it used to run unauthenticated and die with ERROR 1045), verifies `root` against the running server and only then writes /root/.mariadb-initial-password and the completion marker. The password survives reboots.
If you deployed this VM before 2026-09-16, it came from the older image and is not changed by the new publication — redeploy from the current Marketplace version, or apply the one-time repair below:
sudo mkdir -p /etc/app && sudo touch /etc/app/.firstboot-completeImage change: see the pull request.
Source: the Marketplace live version set for this offer, read from Partner Center on 2026-09-16. New deployments take the newest version by default.
| Application ports | 3306 (MariaDB) — listens on localhost (127.0.0.1) only until you open it (three steps in Quick start); ufw already allows 3306, the NSG keeps it closed |
|---|---|
| Admin credential file | sudo cat /root/.mariadb-initial-password |
| Sign in as | root (root@localhost only): with the generated password, or on images from 21 October 2026 onward also as the OS root with `sudo mariadb`, no password |
| Service(s) | mariadb |
| Configuration | /etc/mysql/mariadb.conf.d/50-server.cnf (bind-address; ssl_cert / ssl_key for a CA-signed certificate) |
| Logs | journalctl -u mariadb -f; /var/log/mysql/error.log |
| Version | MariaDB 11.4 LTS (MariaDB repository) |
| Platform | Ubuntu 24.04 LTS |
This image generates its admin credential on the VM at first boot — nothing is pre-set. SSH into the VM with the username + key you chose at deploy, then print the generated credential:
ssh <your-username>@<VM-IP>
sudo cat /root/.mariadb-initial-passwordSign in as root (root@localhost only): with the generated password, or on images from 21 October 2026 onward also as the OS root with `sudo mariadb`, no password.
This is the MariaDB root password set at first boot. Connect with `mariadb -u root -p`. Images from 21 October 2026 onward make that first password sign-in set a new password (`SET PASSWORD = PASSWORD('…');`) and also let the OS root in with `sudo mariadb`, no password; on older images root is password-only (plain `sudo mariadb` is refused) — change the password with ALTER USER. Delete the file once the new password is stored securely.
| Symptom | Check | Fix |
|---|---|---|
| MariaDB answers ERROR 1820 "You must SET PASSWORD before executing this statement" | Images from 21 October 2026 onward, until root's first password change | Run `SET PASSWORD = PASSWORD('NEW-PASSWORD');` in that session, then carry on with the new password. `sudo mariadb` is not affected. |
| `sudo mariadb` says access denied for root@localhost | Images before 21 October 2026 | Root is password-only on those images: use `mariadb -u root -p` with the password from the file. |
Email support@dcassociatesgroup.com (response within 1 business day) or send a
message via the contact form. Include the offer name, VM size, region, and any log output — sudo journalctl -u <service> -n 100 usually tells the story.