Issue with MariaDB Configuration During Server Deployment Using cloud-init

I attempted to deploy a server using cloud-init. The process was successful except for the following errors:

[ * ] Configuring MariaDB database server...
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
[ * ] Installing phpMyAdmin version v5.2.1...

Later, I came across this post: After installing HestiaCP I cannot see the DB database mysql.

The post describes a similar issue. Could you please tell me if this behavior is normal or not?

This error indicates that the user name root failed to connect to the database. If you use another user name, it will not affect the overall operation. This error occurs because the output configuration of the software itself requires root to connect to the database (optional).

This issue occurs during the server installation. After installation, the root password is present in the configuration, but the database is inaccessible in the admin panel after the installation is complete. It might be due to incorrect access rights configuration for the root user. Why could this error arise during server installation? Is this related to the latest security configurations?