Skip to content

Commit

Permalink
optimize for midcore part 3
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Dec 7, 2024
1 parent 9dc209c commit c409d0e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/.vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default defineConfig({
],
themeConfig: {
multiVersionBuild: {
satisfies: '>=1.0.0',
satisfies: '>=1.4.0',
},
sidebar: sidebar(),
},
Expand Down
2 changes: 1 addition & 1 deletion examples/5.7/.lando.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
defaults:
type: mysql
patch:
type: mysql:5.7.24
type: mysql:5.7.41

# This is important because it lets lando know to test against the plugin in this repo
# DO NOT REMOVE THIS!
Expand Down
8 changes: 4 additions & 4 deletions examples/5.7/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ Verification commands
Run the following commands to validate things are rolling as they should.

```bash
# Should use 5.7.29 as the default version
lando ssh -s defaults -c "mysql --version | grep 5.7.43"
# Should use 5.7.43 as the default version
lando exec defaults -- mysql --version | grep 5.7.43

# Should use the patch version when set by the user
lando ssh -s patch -c "mysql --version | grep 5.7.24"
lando exec patch -- mysql --version | grep 5.7.41

# Should use the correct default user pass db
lando ssh -s defaults -c "mysql -umysql -pmysql database -e quit"
lando exec defaults -- mysql -umysql -pmysql database -e quit

# Should still be running even after a restart
lando restart
Expand Down
10 changes: 5 additions & 5 deletions examples/8.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ Verification commands
Run the following commands to validate things are rolling as they should.

```bash
# Should use 8.0.19 as the default version
lando ssh -s defaults -c "mysql --version | grep 8.0.39"
# Should use 8.0.39 as the default version
lando exec defaults -- mysql --version | grep 8.0.39

# Should use the patch version when set by the user
lando ssh -s patch -c "mysql --version | grep 8.0.24"
lando exec patch -- mysql --version | grep 8.0.24

# Should use the correct default user pass db
lando ssh -s defaults -c "mysql -umysql -pmysql database -e quit"
lando exec defaults -- mysql -umysql -pmysql database -e quit

# Should still be running even after a restart
lando restart
lando ssh -s defaults -c "mysql -umysql -pmysql database -e quit"
lando exec defaults -- mysql -umysql -pmysql database -e quit
```

Destroy tests
Expand Down
4 changes: 2 additions & 2 deletions examples/custom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Run the following commands to validate things are rolling as they should.

```bash
# Should use the specfied version when set by the user
lando ssh -s custom -c "mysql --version" | grep "8.0"
lando exec custom -- mysql --version | grep "8.0"

# Should use the caching_sha2_password auth plugin by default for mysql8
lando mysql -u root -e "SELECT user,plugin FROM mysql.user;" | grep pirog | grep caching_sha2_password
Expand All @@ -32,7 +32,7 @@ lando mysql -u root -e "SELECT user,plugin FROM mysql.user;" | grep pirog | grep
lando mysql -u root -h custom_auth -e "SELECT user,plugin FROM mysql.user;" | grep mysql | grep mysql_native_password

# Should use the user provided creds if given
lando ssh -s custom -c "mysql -upirog -ppassword stuff -e quit"
lando exec custom -- mysql -upirog -ppassword stuff -e quit

# Should use a custom config file if specified
lando mysql -u root -e "show variables;" | grep table_open_cache | grep 513
Expand Down

0 comments on commit c409d0e

Please sign in to comment.