Andrew Fletcher published: 6 October 2022 1 minute read
This is a relatively quick process, beginning with dropping the database tables
lando drush sql-drop -y
Import a MySQL database
lando db-import {filename}
such as
lando db-import riverdev.2022-10-03-1664769553.sql.gz
Rebuild cache
lando drush cr
Finally, export your config
lando drush cex
If you know your MySQL filename, you can always chain these commands:
lando drush sql-drop -y && lando db-import riverdev.2022-10-03-1664769553.sql.gz && lando drush cr && lando drush cex
Related articles
Andrew Fletcher
•
22 Nov 2023
Fatal error: Maximum execution time of 30 seconds exceeded in ...
When reloading a page, you may encounter the following error:Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/content/core/lib/Drupal/Core/{some file .php} on line n SolutionTo resolve this issue, you need to adjust the max_execution_time parameter in the php.ini...
Andrew Fletcher
•
22 Nov 2023
To use Pinecone, OpenAI and a language model chain to answer questions in documents
Overview of the elementsSet Up API KeysObtain API keys for Pinecone and OpenAI.Store the keys securely. Consider using a credentials.py file (as mentioned in a previous response). Install Required LibrariesInstall the necessary Python libraries, such as Pinecone's Python client...
Andrew Fletcher
•
19 Nov 2023
Lando - ImportError: libGL.so.1: cannot open shared object file: No such file or directory
Lando is a local development environment tool, and it might not directly support the installation of system-wide packages like libGL. However, you can make sure that the required dependencies are included in your application's environment by modifying its configuration. Here's a general...