You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/app-service/tutorial-php-mysql-app.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -608,11 +608,11 @@ The AZD template you use generated the connectivity variables for you already as
608
608
- AZURE_REDIS_SSL
609
609
</pre>
610
610
611
-
Settings beginnging with `AZURE_MYSQL_` are connection variables for the MySQL database, and settings beginnging with `AZURE_REDIS_` are for the Redis cache. You need to use them in your code later. For your convenience, the AZD template shows you the direct link to the app's app settings page in the Azure portal.
611
+
Settings beginning with `AZURE_MYSQL_` are connection variables for the MySQL database, and settings beginning with `AZURE_REDIS_` are for the Redis cache. You need to use them in your code later. For your convenience, the AZD template shows you the direct link to the app's app settings page in the Azure portal.
612
612
613
613
1. From the explorer, open *config/database.php*. This is the configuration file for database and Redis cache connections.
614
614
615
-
1. Find the part that defines the `mysql` connection (lines 46-64) and replace `DB_HOST`, `DB_PORT`, `DB_DATABASE`, `DB_USERNAME`, and `DB_PASSWORD` with the `AZURE_MYSQL_` app settings from the AZD output. Your `mysql` connection should look like hte following code.
615
+
1. Find the part that defines the `mysql` connection (lines 46-64) and replace `DB_HOST`, `DB_PORT`, `DB_DATABASE`, `DB_USERNAME`, and `DB_PASSWORD` with the `AZURE_MYSQL_` app settings from the AZD output. Your `mysql` connection should look like the following code.
616
616
617
617
```php
618
618
'mysql' => [
@@ -655,11 +655,11 @@ The AZD template you use generated the connectivity variables for you already as
655
655
For more information on Redis cache configuration in Laravel, see [Laravel documentation](https://laravel.com/docs/10.x/redis#configuration).
656
656
657
657
> [!NOTE]
658
-
> Remember that your changes are not deployed yet. You'll deploy them at the end of the next step.
658
+
> Remember that your changes aren't deployed yet. You'll deploy them at the end of the next step.
659
659
660
660
## 4. Configure Laravel settings in web app
661
661
662
-
1. From the explorer, open *infra/resources.bicep*. This is the Bicp template file that defines the created Azure resources.
662
+
1. From the explorer, open *infra/resources.bicep*. This is the Bicep template file that defines the created Azure resources.
663
663
664
664
1. Find the part that defines the app settings (lines 510-514) and uncomment them. These app settings are:
665
665
@@ -764,7 +764,7 @@ azd down
764
764
765
765
#### I get the error during database migrations `php_network_getaddresses: getaddrinfo for mysqldb failed: No address associated with hostname...`
766
766
767
-
It indicates that MySQL connection variables are not properly configured. Verify that the `AZURE_MYSQL_` app settings are properly configured in [3. Use Azure connection strings in application code](#3-use-azure-connection-strings-in-application-code).
767
+
It indicates that MySQL connection variables aren't properly configured. Verify that the `AZURE_MYSQL_` app settings are properly configured in [3. Use Azure connection strings in application code](#3-use-azure-connection-strings-in-application-code).
768
768
769
769
#### I get a blank page in the browser.
770
770
@@ -780,11 +780,11 @@ This error and similar errors indicate that you didn't run `composer install` be
780
780
781
781
#### I get a debug page in the browser saying `php_network_getaddresses: getaddrinfo for redishost failed: Name or service not known.`
782
782
783
-
It indicates that Redis connection variables are not properly configured. Verify that the `AZURE_REDIS_` app settings are properly configured in [3. Use Azure connection strings in application code](#3-use-azure-connection-strings-in-application-code).
783
+
It indicates that Redis connection variables aren't properly configured. Verify that the `AZURE_REDIS_` app settings are properly configured in [3. Use Azure connection strings in application code](#3-use-azure-connection-strings-in-application-code).
784
784
785
785
#### I get a debug page in the browser saying `SQLSTATE[42S02]: Base table or view not found: 1146 Table 'XXXX-XXXXXXXXX-mysql-database.tasks' doesn't exist`
786
786
787
-
It means you haven't run database migrations, or database migrations were not successful. Follow the steps at [5. Generate database schema](#5-generate-database-schema).
787
+
It means you haven't run database migrations, or database migrations weren't successful. Follow the steps at [5. Generate database schema](#5-generate-database-schema).
0 commit comments