Closed 0MAL closed 11 months ago
I think @0MAL you were on the right track; to make sure, the correct way to add config to a MySQL service is to designate the path to the config in your .lando.yml
file. Example from the MySQL service docs:
services:
myservice:
type: mysql
config:
database: config/my-custom.cnf
If you're using the Drupal recipe and your config file was located in a directory called lando/config/mysql
relative to the root of your project, you'd probably want to do something like this:
services:
database:
config:
database: lando/config/database/my-custom.cnf
...since database
is the name of the database service in the Drupal recipe.
FWIW I did check config loading on both the stock MySQL service and a Drupal recipe, seems like it's working as long as you define the path to the config.
Closing out since I'm guessing you've resolved this independently now, sorry for the late reply, hopefully helps future folks!
I tried to change default engine from innodb to myisam, but it fails. What I tried to do was,
What is the wrong? How can I change and apply my_custom.cnf?
lando v3.6.4 ,macosx catalina with intel chip, drupal10 recipe ;I coundn't install newer versions of lando so I installed v3.6.4 instead.