Hi,
when i am deploying, powershell scripts for automatic web deploy setup, while creation of mysqldatabase , it is genarating an error (i,e) Failed to setup database "mydbsql"
Can any give me few suggestions !
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amira BedhiafiPosted Mar 19, 2025, 10:14 PM
You need to verify if MySQL is running on your server before executing the script.
If the service is stopped, start it using:
Also, check if the user executing the script has the necessary privileges to create a database:
If you are using a non-root user, grant specific privileges: