Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 1.58 KB

using_an_existing_mysql_database.md

File metadata and controls

23 lines (18 loc) · 1.58 KB

How to configure WordPress on Linux AppService to an existing MySQL Database

Prerequisite: WordPress database is already preexisted on your database server

  1. The App Service plan hosting your app and the database server are running in the same region to avoid performance issues.
  2. Use Azure MySQL Flexible Server as database.
  3. Keep the database in the same VNET as your App Service. Follow the steps described here.
  4. The MySQL database version should be compatible with the new WordPress version running on Linux App Service.
  5. Backup your WordPress site and database.
  6. Launch the Azure Portal and navigate to your App Service -> Configuration blade. Update the database name, database server, user name & password in the Application Settings of App Service and save it. This will restart your App and the new changes will get reflected.
|    Application Setting Name    |
|--------------------------------|
|    DATABASE_NAME               |
|    DATABASE_HOST               |
|    DATABASE_USERNAME           |
|    DATABASE_PASSWORD           |

Reference: WordPress Application Settings