Azure webapp: Wordpress with my SQL in App - PHPMyAdmin not accessible

%3CLINGO-SUB%20id%3D%22lingo-sub-753528%22%20slang%3D%22en-US%22%3EAzure%20webapp%3A%20Wordpress%20with%20my%20SQL%20in%20App%20-%20PHPMyAdmin%20not%20accessible%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-753528%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%C2%B4m%20running%20a%20Wordpress%20on%20Azure%20(webapp%20%2B%20MySQL%20in%20App)%20and%20recently%20ran%20into%20an%20issue%20accessing%20the%20database.%20Due%20to%20the%20increased%20amount%20of%20traffic%20coming%20into%20the%20app%20had%20to%20scale%20out%20the%20application.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThat%20said%2C%20the%20%22MySQL%20in%20App%22%20was%20replicated%20but%20not%20accessible%20and%20the%20App%20Settings%20where%20updated%20in%20the%20wrong%20way.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ETroubleshooting%3A%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ENoticed%20that%20when%20accessing%20PHPMyAdmin%20I%20was%20getting%20two%20instances%20to%20choose.%20Therefore%20the%20app%20couldn%C2%B4t%20stablish%20communication%20through%20the%20right%20database.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ESolution%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ERemoved%20the%20application%20setting%20for%20MySQL%20which%20was%20causing%20this%20issue%20and%20that%20fixed%20the%20issue.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EIs%20not%20advisable%20to%20scale%20out%20when%20you%20use%20MySQL%20in%20app.%20Instead%20you%20can%20use%20Azure%20DB%20for%20MySQL%20if%20want%20to%20scale%20out.%20There%20is%20an%20option%20to%20easily%20migrate%20from%20%22MySQL%20in%20App%22%20to%20%22Azure%20Database%20for%20MySQL%22%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ENext%20Steps%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ERecommended%20documents%20for%20Azure%20DB%20for%20MySQL.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmysql%2Fquickstart-create-mysql-server-database-using-azure-portal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%20data-auth%3D%22NotApplicable%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmysql%2Fquickstart-create-mysql-server-database-using-azure-portal%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmysql%2Fconcepts-pricing-tiers%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%20data-auth%3D%22NotApplicable%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmysql%2Fconcepts-pricing-tiers%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-in%2Fblog%2Fscaling-out-read-workloads-in-azure-database-for-mysql%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%20data-auth%3D%22NotApplicable%22%3Ehttps%3A%2F%2Fazure.microsoft.com%2Fen-in%2Fblog%2Fscaling-out-read-workloads-in-azure-database-for-mysql%2F%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-753528%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EApp%20Services%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
MVP

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/quickstart-create-mysql-server-database-using-azure-por...

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/

 

 

 

0 Replies