-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use mysql command for MariaDB 10.3.x and below
- Loading branch information
1 parent
625eae0
commit 7774105
Showing
8 changed files
with
96 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: lando-drupal-mariadb-mysql | ||
recipe: drupal10 | ||
config: | ||
php: '8.3' | ||
composer_version: 2.7.4 | ||
webroot: web | ||
database: 'mariadb:10.3' | ||
plugins: | ||
'@lando/drupal': ../.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
Drupal MariaDB/MySQL Example | ||
============================ | ||
|
||
This example exists primarily to test the following documentation: | ||
|
||
* [Drupal Recipe](https://docs.devwithlando.io/tutorials/drupal.html) | ||
|
||
Start up tests | ||
-------------- | ||
|
||
Run the following commands to get up and running with this example. | ||
|
||
```bash | ||
# Should poweroff | ||
lando poweroff | ||
|
||
# Should start up successfully | ||
lando start | ||
``` | ||
|
||
Verification commands | ||
--------------------- | ||
|
||
Run the following commands to validate things are rolling as they should. | ||
|
||
```bash | ||
# Should serve from web folder | ||
lando ssh -s appserver -c "curl -L localhost" | grep "MySQL" | ||
|
||
# Should use 8.3 as the default php version | ||
lando php -v | grep "PHP 8.3" | ||
|
||
# Should use composer 2.7.4 | ||
lando composer -V | grep 2.7.4 | ||
|
||
# Should be running apache 2.4 by default | ||
lando ssh -s appserver -c "apachectl -V" | grep 2.4 | ||
lando ssh -s appserver -c "curl -IL localhost" | grep Server | grep 2.4 | ||
|
||
# Should be running mariadb 10.3.x | ||
lando mysql -V | grep "MariaDB" | grep 10.3. | ||
|
||
# Should not enable xdebug by default | ||
lando php -m | grep xdebug || echo $? | grep 1 | ||
|
||
# Should use the default database connection info | ||
lando mysql -udrupal10 -pdrupal10 drupal10 -e quit | ||
|
||
# Should use the default mariadb config file | ||
lando ssh -s database -c "cat /opt/bitnami/mariadb/conf/my_custom.cnf" | grep "innodb_lock_wait_timeout = 121" | ||
lando mysql -e "show variables;" | grep innodb_lock_wait_timeout | grep 121 | ||
``` | ||
|
||
Destroy tests | ||
------------- | ||
|
||
Run the following commands to trash this app like nothing ever happened. | ||
|
||
```bash | ||
# Should be destroyed with success | ||
lando destroy -y | ||
lando poweroff | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
MySQL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php phpinfo(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters