I get below error in this command sudo service mysql restart

How to solve the problem

It appears that there is a problem with your mysql/mariadb configuration. Has any modification to any of them been made since installation, or is this a new installation?

new installation

Review the installation instructions and make sure the Mariadb configuration , especially Step 7, were done correctly.