Forum Discussion
Azure webapp: Wordpress with my SQL in App - PHPMyAdmin not accessible
Hello
I´m running a Wordpress on Azure (webapp + MySQL in App) and recently ran into an issue accessing the database. Due to the increased amount of traffic coming into the app had to scale out the application.
That said, the "MySQL in App" was replicated but not accessible and the App Settings where updated in the wrong way.
Troubleshooting:
Noticed that when accessing PHPMyAdmin I was getting two instances to choose. Therefore the app couldn´t stablish communication through the right database.
Solution:
Removed the application setting for MySQL which was causing this issue and that fixed the issue.
Is not advisable to scale out when you use MySQL in app. Instead you can use Azure DB for MySQL if want to scale out. There is an option to easily migrate from "MySQL in App" to "Azure Database for MySQL"
Next Steps:
Recommended documents for Azure DB for MySQL.
https://docs.microsoft.com/en-us/azure/mysql/concepts-pricing-tiers
https://azure.microsoft.com/en-in/blog/scaling-out-read-workloads-in-azure-database-for-mysql/
- emrahkutluCopper Contributor
Hello, I am facing a similar problem. phpmyadmin is not working on my local machine.
#2002 - An attempt was made to access a socket in a way forbidden by its access permissions. — The server is not responding (or the local server's socket is not correctly configured).- I tried this solutions but not solved;
https://www.reddit.com/r/AZURE/comments/q22gvn/cant_get_phpmyadmin_to_work_in_azure_webapp/ - https://learn.microsoft.com/en-us/answers/questions/456271/access-denied-on-phpmyadmin-for-azure-wordpress-ap
- https://localhosts.mobi/phpmyadmin
- https://stackoverflow.com/questions/56028539/access-denied-error-while-connecting-to-mysql-in-app-in-azure-app-service
- I tried this solutions but not solved;