Keywords: MySQL - Microsoft Azure - Technical issue - Other
Im trying to set up MySQL HA hosting environment for Azure Stack DBaaS.
First problem: cant sudo. When I want to run "sudo service bitnami status" I get an error "bitnami is not in the sudoers file. This incident will be reported.". Its this normal?
Second problem: after deploying MySQL HA environment, manual steps must be performed (creating a new user in db). I follow these instructions: https://docs.microsoft.com/en-us/azure-stack/operator/azure-stack-tutorial-mysql?view=azs-1908 and Im talking about step: Configure external access to the MySQL cluster. I want to automate this MySQL configuration (creating a new user) with shell script. I made a simple script which create a new user, new database and directory (for test). This script successfully make folder/directory but operations at the database are unsuccessful. What is the reason for this? Why I cant create a new user or create database on MySQL server with shell script with using ARM template (but with the same script I can create a new directory)? But if I upload this script on VM and run it, it successfully create a new directory, a new user and db on MySQL server.
Thank you and have a nice day.