We have previously used the Schematic
plugin for database import inside a Docker
container for a Python script. This is the command used for the importing,
$/data/craft/craft schematic/export --file=schema.yml
The /data/craft/craft
means we run the command inside the preceding folder and the command itself is schematic/export --file=schema.yml
. The file schema.yml
has the database definition.
How do you import and export the databases using the Craft 3.1.x?
Now we use the Craft 3.1
which doesn't work with the Schematic
. I have this project config file after we upgraded to the Craft 3
,
dateModified: 1552904208
plugins:
aws-s3:
edition: standard
enabled: true
schemaVersion: '1.2'
redactor:
edition: standard
enabled: true
schemaVersion: 2.2.2
mysql -u username -p database_name < file.sql
– Robin Schambach Mar 18 at 10:58MySQL
andPostgresql
for the databases. So, I guess I will get a SQL file in the local machine after I import the database? – Arefe Mar 18 at 11:06