Categories
azure azure-sql-database mysql php wordpress

How does Azure override a MySQL connection string in a php application?

I know that Azure uses some runtime magic to override the connection string for my .NET applications. However, I’m trying to port over a wordpress blog and it appears the connection information is stored in a file called wp-config.php. If I input the proper values for the blog into that file then all works fine, but I want to deploy from a public github repository. How do I exclude the connection info from wp-config.php and allow azure to override it at runtime?